Changeset 92
- Timestamp:
- 05/12/16 10:42:44 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/dataselection/DBSCANFilter.java
r86 r92 84 84 Clustering<Model> clusterer = dbscan.run(db); 85 85 Relation<DoubleVector> rel = db.getRelation(TypeUtil.DOUBLE_VECTOR_FIELD); 86 int firstInternalIndex = rel.iterDBIDs().internalGetIndex(); 86 87 87 88 for (Cluster<Model> cluster : clusterer.getAllClusters()) { … … 98 99 .valid(); clusterIter.advance()) 99 100 { 100 int internalIndex = clusterIter.internalGetIndex() - testdata.size() - 1;101 int internalIndex = clusterIter.internalGetIndex() - testdata.size() - firstInternalIndex; 101 102 if (internalIndex >= 0) { 102 103 // index belongs to a training instance … … 107 108 } 108 109 } 109 System.out.println(filteredTraindata.size());110 110 111 111 return filteredTraindata;
Note: See TracChangeset
for help on using the changeset viewer.