public abstract class ModelManager<M extends Model> extends PMMLManager implements Consumer
| Constructor and Description |
|---|
ModelManager() |
ModelManager(PMML pmml) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(FieldName name,
String displayName,
OpType opType,
DataType dataType,
FieldUsageType fieldUsageType)
Convenience method for adding a field declaration to
DataDictionary and MiningSchema. |
MiningField |
addMiningField(FieldName name,
FieldUsageType usageType) |
List<FieldName> |
getActiveFields()
Gets the independent (ie.
|
List<FieldName> |
getGroupFields()
Gets the grouping fields of a
Model from its MiningSchema. |
MiningField |
getMiningField(FieldName name)
Gets the definition of a field from the
MiningSchema. |
List<FieldName> |
getMiningFields(FieldUsageType fieldUsageType) |
MiningSchema |
getMiningSchema() |
abstract M |
getModel() |
LocalTransformations |
getOrCreateLocalTransformations() |
Output |
getOrCreateOutput() |
OutputField |
getOutputField(FieldName name)
Gets the definition of a field from the
Output |
List<FieldName> |
getOutputFields()
|
List<FieldName> |
getPredictedFields()
Gets the dependent (ie.
|
FieldName |
getTargetField()
Convenience method for retrieving the sole predicted field.
|
protected static <E extends Entity> |
putEntity(E entity,
com.google.common.collect.BiMap<String,E> map) |
DerivedField |
resolveField(FieldName name) |
addDataField, find, find, findAll, getDataDictionary, getDataField, getHeader, getModel, getModelManager, getModelManager, getModels, getOrCreateTransformationDictionary, getPmml, resolveFunctionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataField, getSummarypublic ModelManager()
public ModelManager(PMML pmml)
public abstract M getModel()
public void addField(FieldName name, String displayName, OpType opType, DataType dataType, FieldUsageType fieldUsageType)
DataDictionary and MiningSchema.public List<FieldName> getActiveFields()
ConsumerModel from its MiningSchema.getActiveFields in interface ConsumergetActiveFields()public List<FieldName> getGroupFields()
ConsumerModel from its MiningSchema.
A model should have no more than 1 grouping field.getGroupFields in interface ConsumergetGroupFields()public FieldName getTargetField()
ConsumergetTargetField in interface ConsumergetTargetField()public List<FieldName> getPredictedFields()
ConsumerModel from its MiningSchema.getPredictedFields in interface ConsumergetPredictedFields()public List<FieldName> getMiningFields(FieldUsageType fieldUsageType)
public MiningField getMiningField(FieldName name)
ConsumerMiningSchema.getMiningField in interface ConsumerConsumer.getActiveFields(),
Consumer.getPredictedFields(),
getMiningField(FieldName)public MiningField addMiningField(FieldName name, FieldUsageType usageType)
public List<FieldName> getOutputFields()
ConsumergetOutputFields in interface ConsumergetOutputFields()public OutputField getOutputField(FieldName name)
ConsumerOutputgetOutputField in interface ConsumerConsumer.getOutputFields()public DerivedField resolveField(FieldName name)
resolveField in class PMMLManagerpublic MiningSchema getMiningSchema()
public LocalTransformations getOrCreateLocalTransformations()
public Output getOrCreateOutput()
Copyright © 2013 University of Tartu. All Rights Reserved.