Class CostEstimator
java.lang.Object
org.apache.sysds.runtime.controlprogram.parfor.opt.CostEstimator
- Direct Known Subclasses:
CostEstimatorHops,CostEstimatorRuntime
Base class for all potential cost estimators
TODO account for shared read-only matrices when computing aggregated stats
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final doublestatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetEstimate(CostEstimator.TestMeasure measure, OptNode node) Main estimation method.doublegetEstimate(CostEstimator.TestMeasure measure, OptNode node, boolean inclCondPart) doublegetEstimate(CostEstimator.TestMeasure measure, OptNode node, boolean inclCondPart, Collection<String> vars, CostEstimator.ExcludeType extype) doublegetEstimate(CostEstimator.TestMeasure measure, OptNode node, Types.ExecType et) Main estimation method.abstract doublegetLeafNodeEstimate(CostEstimator.TestMeasure measure, OptNode node) Main leaf node estimation method - to be overwritten by specific cost estimatorsabstract doublegetLeafNodeEstimate(CostEstimator.TestMeasure measure, OptNode node, Types.ExecType et) Main leaf node estimation method - to be overwritten by specific cost estimators
-
Field Details
-
DEFAULT_EST_PARALLELISM
public static final double DEFAULT_EST_PARALLELISM- See Also:
-
FACTOR_NUM_ITERATIONS
public static final long FACTOR_NUM_ITERATIONS- See Also:
-
DEFAULT_TIME_ESTIMATE
public static final double DEFAULT_TIME_ESTIMATE- See Also:
-
DEFAULT_MEM_ESTIMATE_CP
public static final double DEFAULT_MEM_ESTIMATE_CP- See Also:
-
DEFAULT_MEM_ESTIMATE_SP
public static final double DEFAULT_MEM_ESTIMATE_SP- See Also:
-
-
Constructor Details
-
CostEstimator
public CostEstimator()
-
-
Method Details
-
getLeafNodeEstimate
Main leaf node estimation method - to be overwritten by specific cost estimators- Parameters:
measure- ?node- internal representation of a plan alternative for program blocks and instructions- Returns:
- estimate?
-
getLeafNodeEstimate
public abstract double getLeafNodeEstimate(CostEstimator.TestMeasure measure, OptNode node, Types.ExecType et) Main leaf node estimation method - to be overwritten by specific cost estimators- Parameters:
measure- ?node- internal representation of a plan alternative for program blocks and instructionset- forced execution type for leaf node- Returns:
- estimate?
-
getEstimate
Main estimation method.- Parameters:
measure- ?node- internal representation of a plan alternative for program blocks and instructions- Returns:
- estimate?
-
getEstimate
-
getEstimate
public double getEstimate(CostEstimator.TestMeasure measure, OptNode node, boolean inclCondPart, Collection<String> vars, CostEstimator.ExcludeType extype) -
getEstimate
Main estimation method.- Parameters:
measure- estimate type (time or memory)node- plan opt tree nodeet- execution type- Returns:
- estimate
-