fozziethebeat / S-Space

The S-Space repsitory, from the AIrhead-Research group
GNU General Public License v2.0
203 stars 106 forks source link

Properties parameter in ClusteringByCommittee.java #75

Open cherylcaprina opened 7 years ago

cherylcaprina commented 7 years ago

Dear S-Space,

Thanks a lot for the previous example shown. I have obtained the matrix from my array and currently I wish to call the method public Assignments cluster(Matrix m, Properties props). i.e. double[][] array={ {3, 0, 1, 0, 0}, {0, 4, 0, 0, 0}, {0, 7, 5, 9, 0}, {0, 0, 0, 0, 2}, {0, 0, 0, 6, 5} }; Matrix m=new ArrayMatrix(array); Properties props=new Properties(); props.setProperty("AVERGAGE_LINK_MERGE_THRESHOLD_PROPERTY", "0.25"); props.setProperty("COMMITTEE_SIMILARITY_THRESHOLD_PROPERTY", "0.35"); props.setProperty("RESIDUE_SIMILARITY_THRESHOLD_PROPERTY", "0.25"); props.setProperty("SOFT_CLUSTERING_SIMILARITY_THRESHOLD_PROPERTY", "0.25"); props.setProperty("HARD_CLUSTERING_PROPERTY", "true"); System.out.println(clust.cluster(m, props)); However, I got CBC only accepts sparse matrix error and I am not sure how to solve it. Can please help? Thank you in advance.

Regards, Cheryl