use of org.knime.distance.DistanceMeasurePortObject in project knime-core by knime.
the class RandomForestDistanceCreatorNodeModel method execute.
/**
* {@inheritDoc}
*/
@Override
protected PortObject[] execute(final PortObject[] inObjects, final ExecutionContext exec) throws Exception {
TreeEnsembleModelPortObject ensemblePO = (TreeEnsembleModelPortObject) inObjects[0];
RandomForestDistanceConfig rfDistCfg = new RandomForestDistanceConfig(ensemblePO);
return new PortObject[] { new DistanceMeasurePortObject(rfDistCfg) };
}
Aggregations