use of org.knime.base.node.mine.treeensemble2.distance.RandomForestDistanceConfig 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