weka.classifiers.meta.multisearch.AbstractEvaluationTask 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 .
*/
/*
* AbstractEvaluationTask.java
* Copyright (C) 2015-2018 University of Waikato, Hamilton, NZ
*/
package weka.classifiers.meta.multisearch;
import weka.core.Instances;
import weka.core.SetupGenerator;
import weka.core.setupgenerator.Point;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.concurrent.Callable;
/**
* Helper class for evaluating a setup.
*/
public abstract class AbstractEvaluationTask
implements Callable {
/** the owner. */
protected MultiSearchCapable m_Owner;
/** the data to use for training. */
protected Instances m_Train;
/** the test set to use (cross-validation if null). */
protected Instances m_Test;
/** the setup generator to use. */
protected SetupGenerator m_Generator;
/** the setup. */
protected Point