Closed programer92 closed 6 years ago
What do you mean "can not Show the clustered data"?
What do you mean "can not Show the clustered data"?:
I mean I want to show the result of the clustering in console e.g before clustering we have these data 0,1,0,2,1,1,2,0,0 but after clustering in I want to have output like below in console: 0,0,0.0 1,1,1 2,2
or
0,0,0,0,1,1,1,2,2
What do you mean "can not Show the clustered data"?:
I mean I want to show the result of the clustering in console e.g before clustering we have these data 0,1,0,2,1,1,2,0,0 but after clustering in I want to have out put like below in console: 0,0,0.0 1,1,1 2,2
or
0,0,0,0,1,1,1,2,2 but I dont know. how?
DENCLUE.getClusterLabel()
returns the cluster labels of data.
BTW, you can find Smile's javadoc at http://haifengl.github.io/smile/api/java/index.html.
I add DENCLUE.getClusterLabel()
but I get the below error
[Exception in thread "main" java.lang.NullPointerException
at smile.clustering.DENCLUE.toString(DENCLUE.java:348)
at test.ReadStringFromFileLineByLine.main(ReadStringFromFileLineByLine.java:80)]
it means this line
sb.append(String.format("DENCLUE clusters of %d data points:%n", y.length));
in DENCLUE.java has error.
I cant solve it.
What can I do?
I cannot repeat this error. You should not call DENCLUE.getClusterLabel()
. Instead call vbbx.getClusterLabel()
after the clustering.
I add this line after clustering
System.out.println(vbbx.getClusterLabel());
but the result in output is as below: null null null null null null null null null null null null null
Whats wrong on it?
Expected behaviour
Denclue is one the clustering algorithm.I wrote a project that it ran the Denclue in the Eclipse .But I have a problem I can not show a result in the console.I mean I can not Show the clustered data in the output.This is my code.I did this at home: Read a file and Change it to 2d array but I had 2 problems.
This is my project :
And this is Denclue algorithm:
This is my dataset:I clustered them:
https://archive.ics.uci.edu/ml/datasets/spambase
What can I do?
This has delayed my work.