Package edu.isi.karma.cleaning.features

Examples of edu.isi.karma.cleaning.features.RecordClassifier


    }
    return minEntry;
  }

  public boolean existClassifer(Vector<Partition> pars) {
    RecordClassifier rClassifier = (RecordClassifier)this.classifier;
    rClassifier.init();
    int cnt = 0;
    for (Partition p : pars) {
      String label = "attr_" + cnt;
      cnt++;
      for (int i = 0; i < p.orgNodes.size(); i++) {
        String data = UtilTools.print(p.orgNodes.get(i));
        rClassifier.addTrainingData(data, label);
      }
    }
    rClassifier.learnClassifer();
    return rClassifier.selfVerify();
  }
View Full Code Here


      tarVector.add(r1.vec);
    }
    RecordFeatureSet rSet = new RecordFeatureSet();
    rSet.addVocabulary(vocb);
    this.featureSet = rSet;
    RecordClassifier r2 = new RecordClassifier(rSet);
    this.classifier = r2;
    partitioner = new OptimizePartition(this, r2);
  }
View Full Code Here

      Ruler r1 = new Ruler();
      r1.setNewInput(examples.get(i)[1]);
      tarVector.add(r1.vec);
    }
    featureSet = dp.rfs;
    RecordClassifier r2 = new RecordClassifier(featureSet);
    this.classifier = r2;
    this.constraints = constraints;
    string2Vector = dp.getStandardData();
  }
View Full Code Here

      Ruler r1 = new Ruler();
      r1.setNewInput(examples.get(i)[1]);
      tarVector.add(r1.vec);
    }
    featureSet = dp.rfs;
    RecordClassifier r2 = new RecordClassifier(featureSet);
    this.classifier = r2;
    string2Vector = dp.getStandardData();
    this.dataPreProcessor = dp;
    this.msGer = msger;
  }
View Full Code Here

TOP

Related Classes of edu.isi.karma.cleaning.features.RecordClassifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.