Package org.aksw.limes.core.ml.algorithm
Class MLAlgorithmFactory
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.MLAlgorithmFactory
-
public class MLAlgorithmFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ML_ALGORITHMstatic StringDRAGONstatic StringEAGLEstatic StringEUCLID_BOOLEANstatic StringEUCLID_LINEARstatic StringEUCLID_MESHstatic StringLIONstatic org.slf4j.Loggerloggerstatic StringSUPERVISED_ACTIVEstatic StringSUPERVISED_BATCHstatic StringUNSUPERVISEDstatic StringWOMBAT_COMPLETEstatic StringWOMBAT_SIMPLE
-
Constructor Summary
Constructors Constructor Description MLAlgorithmFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AMLAlgorithmcreateMLAlgorithm(Class<? extends ACoreMLAlgorithm> clazz, MLImplementationType mlType)static Class<? extends ACoreMLAlgorithm>getAlgorithmType(String name)static MLImplementationTypegetImplementationType(String name)
-
-
-
Field Detail
-
EAGLE
public static final String EAGLE
- See Also:
- Constant Field Values
-
WOMBAT_SIMPLE
public static final String WOMBAT_SIMPLE
- See Also:
- Constant Field Values
-
WOMBAT_COMPLETE
public static final String WOMBAT_COMPLETE
- See Also:
- Constant Field Values
-
LION
public static final String LION
- See Also:
- Constant Field Values
-
EUCLID_LINEAR
public static final String EUCLID_LINEAR
- See Also:
- Constant Field Values
-
EUCLID_BOOLEAN
public static final String EUCLID_BOOLEAN
- See Also:
- Constant Field Values
-
EUCLID_MESH
public static final String EUCLID_MESH
- See Also:
- Constant Field Values
-
DRAGON
public static final String DRAGON
- See Also:
- Constant Field Values
-
SUPERVISED_ACTIVE
public static final String SUPERVISED_ACTIVE
- See Also:
- Constant Field Values
-
SUPERVISED_BATCH
public static final String SUPERVISED_BATCH
- See Also:
- Constant Field Values
-
UNSUPERVISED
public static final String UNSUPERVISED
- See Also:
- Constant Field Values
-
DEFAULT_ML_ALGORITHM
public static final String DEFAULT_ML_ALGORITHM
- See Also:
- Constant Field Values
-
logger
public static final org.slf4j.Logger logger
-
-
Method Detail
-
getAlgorithmType
public static Class<? extends ACoreMLAlgorithm> getAlgorithmType(String name)
- Parameters:
name- algorithm name- Returns:
- the core ML algorithm
-
getImplementationType
public static MLImplementationType getImplementationType(String name)
- Parameters:
name- implementation type as string- Returns:
- the implementation type as enum
-
createMLAlgorithm
public static AMLAlgorithm createMLAlgorithm(Class<? extends ACoreMLAlgorithm> clazz, MLImplementationType mlType) throws UnsupportedMLImplementationException
- Parameters:
clazz- the core ML algorithm classmlType- the implementation type- Returns:
- the ML algorithm
- Throws:
UnsupportedMLImplementationException- Exception
-
-