public class ModelManager<M extends Model> extends PMMLManager implements Consumer
| Constructor and Description |
|---|
ModelManager(PMML pmml,
M model) |
| Modifier and Type | Method and Description |
|---|---|
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() |
M |
getModel() |
LocalTransformations |
getOrCreateLocalTransformations() |
Output |
getOrCreateOutput() |
Targets |
getOrCreateTargets() |
OutputField |
getOutputField(FieldName name)
Gets the definition of a field from the
Output |
List<FieldName> |
getOutputFields()
|
List<FieldName> |
getPredictedFields()
Gets the dependent (ie.
|
String |
getSummary()
Returns a short description of the underlying
Model |
Target |
getTarget(FieldName name) |
FieldName |
getTargetField()
Convenience method for retrieving the sole predicted field.
|
DerivedField |
resolveField(FieldName name) |
find, find, findAll, getDataDictionary, getDataField, getHeader, getModel, getModelManager, getModels, getOrCreateTransformationDictionary, getPMML, resolveFunctionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataFieldpublic M getModel()
public String getSummary()
ConsumerModelgetSummary in interface Consumerpublic 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 Consumernull if it does not existgetTargetField()public List<FieldName> getPredictedFields()
ConsumerModel from its MiningSchema.getPredictedFields in interface ConsumergetPredictedFields()public MiningField getMiningField(FieldName name)
ConsumerMiningSchema.getMiningField in interface ConsumerConsumer.getActiveFields(),
Consumer.getPredictedFields(),
getMiningField(FieldName)public List<FieldName> getMiningFields(FieldUsageType fieldUsageType)
public OutputField getOutputField(FieldName name)
ConsumerOutputgetOutputField in interface ConsumerConsumer.getOutputFields()public List<FieldName> getOutputFields()
ConsumergetOutputFields in interface ConsumergetOutputFields()public DerivedField resolveField(FieldName name)
resolveField in class PMMLManagerpublic MiningSchema getMiningSchema()
public LocalTransformations getOrCreateLocalTransformations()
public Output getOrCreateOutput()
public Targets getOrCreateTargets()
Copyright © 2013 University of Tartu. All Rights Reserved.