public class Classifier extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FIELD_NAME
The default name of the field generated by a classifier.
|
static String |
PROP_WEIGHTS
Name of the property utilized by the weighted average classifier.
|
Constructor and Description |
---|
Classifier()
Construct an empty classifier.
|
Classifier(ClassifierType type,
String[] fieldNames,
String outputFieldName)
Construct a classifier without any specific properties.
|
Classifier(ClassifierType type,
String[] fieldNames,
String outputFieldName,
Map<String,Object> properties)
Construct a classifier with properties specific to the classifier type.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getFields()
Get the input field names.
|
String |
getOutput()
Get the output field name.
|
Map<String,Object> |
getProperties()
Get the classifier type specific properties.
|
ClassifierType |
getType()
Get the classifier type.
|
void |
setFields(String[] fieldNames)
Set the input field names.
|
void |
setOutput(String outputFieldName)
Set the output field name.
|
void |
setProperties(Map<String,Object> properties)
Set the classifier type specific properties.
|
void |
setProperty(String name,
Object value)
Set a type specific property.
|
void |
setType(ClassifierType type)
Set the classifier type.
|
public static final String DEFAULT_FIELD_NAME
public static final String PROP_WEIGHTS
public Classifier()
public Classifier(ClassifierType type, String[] fieldNames, String outputFieldName)
type
- the type of classifier wantedfieldNames
- input field names of the classifieroutputFieldName
- name of the output field containing the scorepublic Classifier(ClassifierType type, String[] fieldNames, String outputFieldName, Map<String,Object> properties)
type
- the type of classifier wantedfieldNames
- input field names of the classifieroutputFieldName
- name of the output field containing the scoreproperties
- properties specific to the classifier typepublic ClassifierType getType()
public void setType(ClassifierType type)
type
- the classifier typepublic Map<String,Object> getProperties()
public void setProperties(Map<String,Object> properties)
properties
- the classifier type specific propertiespublic void setProperty(String name, Object value)
name
- property namevalue
- property valuepublic String[] getFields()
public void setFields(String[] fieldNames)
fieldNames
- input field namespublic String getOutput()
public void setOutput(String outputFieldName)
outputFieldName
- output field namesCopyright © 2016 Actian Corporation. All rights reserved.