Package unifeat.classifier
Class ClassifierType
java.lang.Object
unifeat.featureSelection.EnumType
unifeat.classifier.ClassifierType
This java class is used to define the names of classifiers.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ClassifierType
static final ClassifierType
static final ClassifierType
static final ClassifierType
static final ClassifierType
-
Constructor Summary
ModifierConstructorDescriptionprivate
ClassifierType
(String name) Creates new ClassifierType.private
ClassifierType
(String name, int value) Creates new ClassifierType. -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
asList()
Returns the names of classifiersstatic ClassifierType
Converts the classifier name to ClassifierType
-
Field Details
-
NONE
-
SVM
-
NB
-
DT
-
KNN
-
-
Constructor Details
-
ClassifierType
Creates new ClassifierType. This method is called from within the constructor to initialize the parameter.- Parameters:
name
- the name of classifier
-
ClassifierType
Creates new ClassifierType. This method is called from within the constructor to initialize the parameter.- Parameters:
name
- the name of classifiervalue
- the value of classifier
-
-
Method Details
-
asList
Returns the names of classifiers- Returns:
- an array of names of classifiers
-
parse
Converts the classifier name to ClassifierType- Parameters:
type
- the name of classifier as string- Returns:
- the classifier type
-