weka.classifiers.meta.multisearch.DefaultEvaluationTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multisearch-weka-package Show documentation
Show all versions of multisearch-weka-package Show documentation
Parameter optimization similar to GridSearch.
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/*
* DefaultEvaluationTask.java
* Copyright (C) 2015-2018 University of Waikato, Hamilton, NZ
*/
package weka.classifiers.meta.multisearch;
import weka.classifiers.Classifier;
import weka.classifiers.Evaluation;
import weka.core.Instances;
import weka.core.SetupGenerator;
import weka.core.setupgenerator.Point;
import java.io.Serializable;
import java.util.Random;
/**
* Default Evaluation task.
*/
public class DefaultEvaluationTask
extends AbstractEvaluationTask {
/**
* Initializes the task.
*
* @param owner the owning MultiSearch classifier
* @param train the training data
* @param test the test data, can be null
* @param generator the generator to use
* @param values the setup values
* @param folds the number of cross-validation folds
* @param eval the type of evaluation
* @param classLabel the class label index (0-based; if applicable)
*/
public DefaultEvaluationTask(
MultiSearchCapable owner, Instances train, Instances test,
SetupGenerator generator, Point