
moa.classifiers.OneClassClassifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moa Show documentation
Show all versions of moa Show documentation
Massive On-line Analysis is an environment for massive data mining. MOA
provides a framework for data stream mining and includes tools for evaluation
and a collection of machine learning algorithms. Related to the WEKA project,
also written in Java, while scaling to more demanding problems.
/*
* OneClassClassifier.java
* Copyright (C) 2018 Richard Hugh Moulton
* @author Richard Hugh Moulton
*
* 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 .
*
*/
package moa.classifiers;
import java.util.Collection;
import com.yahoo.labs.samoa.instances.Instance;
/**
* An interface for incremental classifier models. As an extension of MultiClassClassifier, these
* classifiers appear in the GUI Classification Tab. Marking them as OneClassClassifiers also
* allows them to appear specifically when one-class classifiers are needed.
*
* @author Richard Hugh Moulton
*
*/
public interface OneClassClassifier extends MultiClassClassifier
{
/**
* Allows a one class classifier to be initialized with a starting set of training instances.
*/
public void initialize(Collection trainingPoints);
/**
* For use when an anomaly score is needed instead of a vote.
* The higher an instance's anomaly score is, the more likely it is an anomaly.
*/
public double getAnomalyScore(Instance inst);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy