Exemplo n.º 1
0
 @Override
 public int measureByteSize() {
   int size = (int) SizeOf.sizeOf(this);
   for (Classifier classifier : this.ensemble) {
     size += classifier.measureByteSize();
   }
   return size;
 }
Exemplo n.º 2
0
 @Override
 public void resetLearningImpl() {
   this.ensemble = new Classifier[this.ensembleSizeOption.getValue()];
   Classifier baseLearner = (Classifier) getPreparedClassOption(this.baseLearnerOption);
   baseLearner.resetLearning();
   for (int i = 0; i < this.ensemble.length; i++) {
     this.ensemble[i] = baseLearner.copy();
   }
   instConfCount = 0;
   this.scms = new double[this.ensemble.length];
   this.swms = new double[this.ensemble.length];
 }