use of org.dmg.pmml.TransformationDictionaryDocument.TransformationDictionary in project knime-core by knime.
the class PMMLOne2ManyTranslator method exportToTransDict.
/**
* {@inheritDoc}
*/
@Override
public TransformationDictionary exportToTransDict() {
TransformationDictionary dictionary = TransformationDictionary.Factory.newInstance();
dictionary.setDerivedFieldArray(createDerivedFields());
return dictionary;
}
use of org.dmg.pmml.TransformationDictionaryDocument.TransformationDictionary in project knime-core by knime.
the class PMMLMany2OneTranslator method exportToTransDict.
/**
* {@inheritDoc}
*/
@Override
public TransformationDictionary exportToTransDict() {
final TransformationDictionary dictionary = TransformationDictionary.Factory.newInstance();
dictionary.setDerivedFieldArray(new DerivedField[] { createDerivedField() });
return dictionary;
}
use of org.dmg.pmml.TransformationDictionaryDocument.TransformationDictionary in project knime-core by knime.
the class PMMLOne2ManyTranslator method exportToTransDict.
/**
* {@inheritDoc}
*/
@Override
public TransformationDictionary exportToTransDict() {
TransformationDictionary dictionary = TransformationDictionary.Factory.newInstance();
dictionary.setDerivedFieldArray(createDerivedFields());
return dictionary;
}
use of org.dmg.pmml.TransformationDictionaryDocument.TransformationDictionary in project knime-core by knime.
the class PMMLMissingValueReplacementTranslator method exportTo.
/**
* {@inheritDoc}
*/
@Override
public SchemaType exportTo(final PMMLDocument pmmlDoc, final PMMLPortObjectSpec spec) {
TransformationDictionary td = pmmlDoc.getPMML().getTransformationDictionary();
if (td == null) {
td = pmmlDoc.getPMML().addNewTransformationDictionary();
}
DerivedFieldMapper mapper = new DerivedFieldMapper(pmmlDoc);
for (MissingCellHandler handler : m_handlers) {
DerivedField f = handler.getPMMLDerivedField();
if (f != null) {
f.setDisplayName(f.getName());
f.setName(mapper.createDerivedFieldName(f.getName()));
td.getDerivedFieldList().add(f);
}
}
return null;
}
use of org.dmg.pmml.TransformationDictionaryDocument.TransformationDictionary in project knime-core by knime.
the class PMMLStringConversionTranslator method exportToTransDict.
/**
* {@inheritDoc}
*/
@Override
public TransformationDictionary exportToTransDict() {
TransformationDictionary dictionary = TransformationDictionary.Factory.newInstance();
dictionary.setDerivedFieldArray(createDerivedFields());
return dictionary;
}
Aggregations