public class CARTModel extends Model
applyTo, dataStream, featureComputer, featureManager, featureName, predictFrom, predictionFeatureNames, targetAttributeFormat, targetAttributeName, voiceName
Constructor and Description |
---|
CARTModel(FeatureProcessorManager featureManager,
String voiceName,
InputStream dataStream,
String targetAttributeName,
String targetAttributeFormat,
String featureName,
String predictFrom,
String applyTo) |
Modifier and Type | Method and Description |
---|---|
protected float |
evaluate(Target target)
Apply the CART to a Target to get its predicted value
|
protected void |
loadData()
Load CART from file for this Model
|
applyFromTo, applyTo, getApplyTo, getFeatureName, getPredictFrom, getTargetAttributeName, getTargets, getVoiceName, load, setupFeatureComputer
public CARTModel(FeatureProcessorManager featureManager, String voiceName, InputStream dataStream, String targetAttributeName, String targetAttributeFormat, String featureName, String predictFrom, String applyTo) throws MaryConfigurationException
MaryConfigurationException
protected void loadData() throws IOException, MaryConfigurationException
loadData
in class Model
IOException
- if any files cannot be properly readMaryConfigurationException
- if files can be read but contain problematic contentCopyright © 2000–2016 DFKI GmbH. All rights reserved.