Package org.aksw.limes.core.ml.algorithm
Class ActiveMLAlgorithm
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.AMLAlgorithm
-
- org.aksw.limes.core.ml.algorithm.ActiveMLAlgorithm
-
public class ActiveMLAlgorithm extends AMLAlgorithm
- Author:
- Tommaso Soru (tsoru@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description static MLImplementationTypeML_IMPLEMENTATION_TYPE
-
Constructor Summary
Constructors Constructor Description ActiveMLAlgorithm(Class<? extends ACoreMLAlgorithm> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MLResultsactiveLearn()MLResultsactiveLearn(AMapping oracleMapping)AMappinggetNextExamples(int size)-
Methods inherited from class org.aksw.limes.core.ml.algorithm.AMLAlgorithm
asActive, asSupervised, asUnsupervised, getMl, getName, getParameters, init, predict, setMl, setParameter
-
-
-
-
Field Detail
-
ML_IMPLEMENTATION_TYPE
public static final MLImplementationType ML_IMPLEMENTATION_TYPE
-
-
Constructor Detail
-
ActiveMLAlgorithm
public ActiveMLAlgorithm(Class<? extends ACoreMLAlgorithm> clazz) throws UnsupportedMLImplementationException
- Parameters:
clazz- the CoreMLAlgorithm class- Throws:
UnsupportedMLImplementationException- if ML implementation is not supported
-
-
Method Detail
-
getNextExamples
public AMapping getNextExamples(int size) throws UnsupportedMLImplementationException
- Parameters:
size- number of examples to return- Returns:
- the mapping
- Throws:
UnsupportedMLImplementationException- if ML implementation is not supported
-
activeLearn
public MLResults activeLearn() throws UnsupportedMLImplementationException
- Returns:
- wrap with results
- Throws:
UnsupportedMLImplementationException- Exception
-
activeLearn
public MLResults activeLearn(AMapping oracleMapping) throws UnsupportedMLImplementationException
- Parameters:
oracleMapping- mapping from the oracle- Returns:
- wrap with results
- Throws:
UnsupportedMLImplementationException- if ML implementation is not supported
-
-