Skip to main content
. Author manuscript; available in PMC: 2018 Jan 15.
Published in final edited form as: Neuroimage. 2016 Feb 23;145(Pt B):346–364. doi: 10.1016/j.neuroimage.2016.02.041

Algorithm 2 — Initialization — Determinental Point Processes

Input: X ∈ ℝn×d, y ∈ {−1, +1}n (training signals), K (number of clusters), m (number of hyperplanes samples to draw)
Output: S[0,1]n×K (Initial Clustering Assignment)
• Randomly draw m pairs of negative (x) and positive (x+) samples (with replacement): {xi,xi+}i=1m
• Obtain m hyperplanes by taking the difference between members of the same pair: ui=(xi+xi)/xi+xi2
• Sample K hyperplanes {wj0}j=1K from {ui}i=1m by Determinental Point Processes (Kulesza and Taskar, 2012)
• Set rows of S such that si,argminjwj0Txi=1, otherwise set si,j = 0