Examples of train()


Examples of com.rapidminer.RatingPrediction.UserItemBaseline.Train()

         recommendAlg.SetMinRating(getParameterAsInt("Min Rating"));
         recommendAlg.SetMaxRating(recommendAlg.GetMinRating()+getParameterAsInt("Range"));
        
         recommendAlg.SetRatings(training_data);

         recommendAlg.Train();
        
        exampleSetOutput.deliver(exampleSet);
        exampleSetOutput1.deliver(recommendAlg);
        }
  }
View Full Code Here

Examples of cz.zcu.fav.liks.ml.featuresel.filtering.BasicFilterTrainer.train()

    extractor = new FeatureExtractor<Review>(set);
    TrainingFeatureVectorList tfvl = extractor.extractTrainingFeatures(instances);

    if (filter != null) {
      FilterTrainer filterTrainer = new BasicFilterTrainer();
      filterTrainer.train(tfvl);
      tfvlReduction += filter.filter(tfvl, minWeight, filterTrainer);
    }

    classifier = trainer.train(tfvl);
View Full Code Here

Examples of cz.zcu.fav.liks.ml.featuresel.filtering.FilterTrainer.train()

    extractor = new FeatureExtractor<Review>(set);
    TrainingFeatureVectorList tfvl = extractor.extractTrainingFeatures(instances);

    if (filter != null) {
      FilterTrainer filterTrainer = new BasicFilterTrainer();
      filterTrainer.train(tfvl);
      tfvlReduction += filter.filter(tfvl, minWeight, filterTrainer);
    }

    classifier = trainer.train(tfvl);
View Full Code Here

Examples of etc.aloe.processes.Training.train()

        ExampleSet examples = extraction.extractFeatures(basicExamples, this.featureSpecification);

        //Train the model
        Training training = getTrainingImpl();
        this.featureValues = examples.getInstances();
        this.model = training.train(examples);

        //Get the top features
        this.topFeatures = getFeatureWeightingImpl().getTopFeatures(examples, this.model, NUM_TOP_FEATURES);
        this.featureWeights = getFeatureWeightingImpl().getFeatureWeights(examples, this.model);
    }
View Full Code Here

Examples of fr.lip6.jkernelmachines.classifier.DoublePegasosSVM.train()

      svm.setLambda(1. / (train.size() * Double
          .parseDouble(regularizationField.getText())));
      svm.setK(train.size() / 20);
      svm.setT(10 * train.size());
      svm.train(localTrain);

      // info
      classnameLabel.setText(svm.getClass().getSimpleName());
      svLabel.setText("N/A");

View Full Code Here

Examples of fr.lip6.jkernelmachines.classifier.DoublePegasosSVM.train()

      }
      for (int d = 1; d < 5; d++) {
        svm.addKernel(new DoublePolynomial(d));
        svm.addKernel(new DoubleHPolynomial(d));
      }
      svm.train(localTrain);

      // info
      classnameLabel.setText(svm.getClass().getSimpleName());
      double[] alphas = svm.getAlphas();
      int sv = 0;
View Full Code Here

Examples of fr.lip6.jkernelmachines.classifier.DoublePegasosSVM.train()

        .toString())) {
      DoubleQNPKL svm = new DoubleQNPKL();
      svm.setC(Double.parseDouble(regularizationField.getText()));
      DebugPrinter.setDebugLevel(2);

      svm.train(localTrain);
      // info
      classnameLabel.setText(svm.getClass().getSimpleName());
      double[] alphas = svm.getAlphas();
      int sv = 0;
      for (int s = 0; s < alphas.length; s++) {
View Full Code Here

Examples of fr.lip6.jkernelmachines.classifier.DoublePegasosSVM.train()

      peg.setLambda(lambda);
      peg.setK(K);
      peg.setT(T);
      peg.setT0(t0);
      peg.setBias(bias);
      peg.train(train);


      //3.2 train transductive pegasos
//      DoubleGaussL2 kernel = new DoubleGaussL2();
//      kernel.setGamma(0.01);
View Full Code Here

Examples of fr.lip6.jkernelmachines.classifier.DoubleQNPKL.train()

        .toString())) {
      DoubleQNPKL svm = new DoubleQNPKL();
      svm.setC(Double.parseDouble(regularizationField.getText()));
      DebugPrinter.setDebugLevel(2);

      svm.train(localTrain);
      // info
      classnameLabel.setText(svm.getClass().getSimpleName());
      double[] alphas = svm.getAlphas();
      int sv = 0;
      for (int s = 0; s < alphas.length; s++) {
View Full Code Here

Examples of fr.lip6.jkernelmachines.classifier.DoubleSAG.train()

        .toString())) {
      DoubleSAG svm = new DoubleSAG();
      svm.setLambda(1. / (train.size() * Double
          .parseDouble(regularizationField.getText())));
      svm.setE(10);
      svm.train(localTrain);

      // info
      classnameLabel.setText(svm.getClass().getSimpleName());
      svLabel.setText("N/A");

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.