create_MLCL | R Documentation |
create_MLCL
randomly generates Must-Link (ML) and Cannot-Link (CL) constraints from a vector y
of class labels.
create_MLCL(y, nbConst)
y |
Vector of class labels. |
nbConst |
Number of constraints. |
A list with two components:
Matrix of ML constraints. Each row corresponds to a constraint.
Matrix of ML constraints. Each row corresponds to a constraint.
cecm
y<-sample(3,100,replace=TRUE)
const<-create_MLCL(y,nbConst=10)
const$ML
const$CL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.