com.rapidminer.operator.annotation
Class ExampleSetResourceConsumptionEstimator
java.lang.Object
com.rapidminer.operator.annotation.ExampleSetResourceConsumptionEstimator
- All Implemented Interfaces:
- ResourceConsumptionEstimator
- Direct Known Subclasses:
- PolynomialExampleSetResourceConsumptionEstimator
public abstract class ExampleSetResourceConsumptionEstimator
- extends java.lang.Object
- implements ResourceConsumptionEstimator
Computes resource consumption based on an example set taken from a
given port.
- Author:
- Simon Fischer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExampleSetResourceConsumptionEstimator
public ExampleSetResourceConsumptionEstimator(InputPort inputPort,
AttributeSubsetSelector selector)
estimateMemory
public abstract long estimateMemory(ExampleSetMetaData exampleSet)
estimateRuntime
public abstract long estimateRuntime(ExampleSetMetaData exampleSet)
estimateMemoryConsumption
public long estimateMemoryConsumption()
- Description copied from interface:
ResourceConsumptionEstimator
- Returns the estimated number of bytes required when executing this operator.
If, for any reason, computation is impossible, -1 should be returned.
- Specified by:
estimateMemoryConsumption
in interface ResourceConsumptionEstimator
estimateRuntime
public long estimateRuntime()
- Description copied from interface:
ResourceConsumptionEstimator
- Returns the estimated number of CPU-cycles.
If, for any reason, computation is impossible, -1 should be returned.
- Specified by:
estimateRuntime
in interface ResourceConsumptionEstimator
getExampleSet
protected ExampleSetMetaData getExampleSet()
Copyright © 2001-2009 by Rapid-I