ELKI中RepresentativeUncertainClustering算法配置问题求助(两个具体错误)
ELKI中RepresentativeUncertainClustering算法配置问题求助(两个具体错误)
我刚接触ELKI,正在测试RepresentativeUncertainClustering算法,不过遇到了些问题,真心希望能得到大家的帮助。我试着用这个算法跑个demo,已经修改了meta.ExternalClustering和pwc.clustering参数,但还是跑不起来。
Issue 1
我尝试运行了下面的命令:
KDDCLIApplication -dbc.in "E:\\User\\Downloads\\IRIS1.csv" -algorithm clustering.uncertain.RepresentativeUncertainClustering -kmeans.k 3 -parallel.clusteroutline.straight
结果收到了如下错误:
Task is not completely configured: Parameter 'pwc.metaclustering' The meta clustering algorithm (as configured) does not accept clustering results. Read: kmedoids.PAM Expected: Algorithm used to aggregate clustering results. Must be a distance-based clustering algorithm. The parameter pwc.clustering is required.
我本来以为kmedoids.PAM是基于距离的聚类算法,不太明白为什么会报这个错,有没有大佬能帮忙解释下?
Issue 2
之后我修改了命令,改成这样:
KDDCLIApplication -dbc.in "E:\\User\\Downloads\\iris (1).csv" -dbc.filter typeconversions.UncertainifyFilter -uofilter.generator SimpleGaussianUncertainifier -uo.uncertainty.max3sigma 1.0 -algorithm clustering.uncertain.RepresentativeUncertainClustering -pwc.metaclustering meta.ExternalClustering -externalcluster.file "E:\\User\\Downloads\\IRIS11.xlsx" -pwc.clustering kmeans.SortMeans -kmeans.k 3
这次ELKI允许命令执行了,但任务还是失败了,错误信息如下:
Task failed java.lang.NullPointerException: Cannot invoke "elki.clustering.ClusteringAlgorithm.autorun(elki.database.Database)" because "this.samplesAlgorithm" is null at elki.clustering.uncertain.RepresentativeUncertainClustering.runClusteringAlgorithm(RepresentativeUncertainClustering.java:301) at elki.clustering.uncertain.RepresentativeUncertainClustering.run(RepresentativeUncertainClustering.java:187) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at elki.Algorithm$Utils.autorun(Algorithm.java:126) at elki.clustering.ClusteringAlgorithm.autorun(ClusteringAlgorithm.java:51) at elki.clustering.ClusteringAlgorithm.autorun(ClusteringAlgorithm.java:47) at elki.workflow.AlgorithmStep.runAlgorithms(AlgorithmStep.java:97) at elki.KDDTask.run(KDDTask.java:103) at elki.application.KDDCLIApplication.run(KDDCLIApplication.java:58) at [...]
看起来是this.samplesAlgorithm为空导致的,但我不清楚具体原因,有没有人知道该怎么解决这个问题?
提前感谢大家的指导!
备注:内容来源于stack exchange,提问作者Toan
相关产品推荐
相关产品推荐

