Added testSpectralClusteringIsolatedVertex

parent 0e98667d
Pipeline #110673 failed with stages
......@@ -21,6 +21,7 @@ import net.sf.javaml.core.Instance;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.RealMatrix;
import org.graphstream.graph.Graph;
import org.junit.Ignore;
import org.junit.Test;
import smile.clustering.DBSCAN;
import smile.clustering.SpectralClustering;
......@@ -147,6 +148,18 @@ public class AutomaticClusteringTest extends AbstractSymtabTest{
}
@Ignore
@Test
public void testSpectralClusteringIsolatedVertex(){
double[][] adjMatrix = {
{0, 1, 1, 0},
{1, 0, 0, 0},
{1, 0, 0, 0},
{0, 0, 0, 0}};
SpectralClustering clustering = new SpectralClustering(adjMatrix,2);
}
// todo: gotta move this thing later, just temporarily here for testing purposes
public static Dataset[] getClustering(Dataset data, SparseMatrix matrix) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment