Package edu.uci.jforestsx.config

Examples of edu.uci.jforestsx.config.RankingTrainingConfig


    }
  }

  @Override
  protected void loadConfig() {
    trainingConfig = new RankingTrainingConfig();
    trainingConfig.init(configHolder);
  }
View Full Code Here


  }

  @Override
  protected Sample createSample(Dataset dataset, boolean trainSample) {
    RankingSample sample = new RankingSample((RankingDataset) dataset);
    RankingTrainingConfig config = (RankingTrainingConfig) trainingConfig;
    if (trainSample) {
      if (config.augmentationDocSamplingEnabled) {
        return sample.getAugmentedSampleWithDocSampling(config.augmentationDocSamplingTimes, config.augmentationDocSamplingRate, rnd);
      }
    }
View Full Code Here

    return sample;
  }

  @Override
  protected int getMaxTrainInstances() {
    RankingTrainingConfig config = (RankingTrainingConfig) trainingConfig;
    if (config.augmentationDocSamplingEnabled) {
      return trainDataset.numInstances * (config.augmentationDocSamplingTimes + 1);
    } else {
      return trainDataset.numInstances;
    }
View Full Code Here

TOP

Related Classes of edu.uci.jforestsx.config.RankingTrainingConfig

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.