
Last chance! 50% off unlimited learning
Sale ends in
sslMincut
implements the Mincut algorithm for maxflow graph partition in the k-nearest neighbor graph.
sslMincut(xl, yl, xu, simil.type = "correlation", k = 10)
sslMincut
creates a k-nearest neighbor graph and finds a maxflow
from the first postive observation to the first negative one based on MPLA algorithm. This
maxflow partitions the graph into postive labels and negative ones.
pr_DB
simil
data(iris)
xl<-iris[c(1:20,51:70),-5]
xu<-iris[c(21:50,71:100),-5]
yl<-rep(c(1,-1),each=20)
yu<-sslMincut(xl,yl,xu)
Run the code above in your browser using DataLab