cascading.pattern.model
Class ModelScoringFunction<S extends Spec,P>

java.lang.Object
  extended by cascading.operation.BaseOperation<ModelScoringFunction.Context<P>>
      extended by cascading.pattern.model.ModelScoringFunction<S,P>
All Implemented Interfaces:
cascading.flow.planner.DeclaresResults, Function<ModelScoringFunction.Context<P>>, Operation<ModelScoringFunction.Context<P>>, cascading.util.Traceable, Serializable
Direct Known Subclasses:
CategoricalRegressionFunction, ClusteringFunction, PredictionRegressionFunction, TreeFunction

public abstract class ModelScoringFunction<S extends Spec,P>
extends BaseOperation<ModelScoringFunction.Context<P>>
implements Function<ModelScoringFunction.Context<P>>

See Also:
Serialized Form

Nested Class Summary
protected static class ModelScoringFunction.Context<Payload>
          Class Context is used to hold intermediate values.
protected static interface ModelScoringFunction.Result<In,Out>
           
 
Field Summary
protected  boolean isSafe
           
static boolean SAFE_DEFAULT
           
protected  S spec
           
 
Fields inherited from class cascading.operation.BaseOperation
fieldDeclaration, numArgs, trace
 
Fields inherited from interface cascading.operation.Operation
ANY
 
Constructor Summary
protected ModelScoringFunction(S spec)
           
protected ModelScoringFunction(S spec, boolean safe)
           
 
Method Summary
 S getSpec()
           
 boolean isSafe()
           
 void prepare(FlowProcess flowProcess, OperationCall<ModelScoringFunction.Context<P>> operationCall)
           
 
Methods inherited from class cascading.operation.BaseOperation
cleanup, equals, flush, getFieldDeclaration, getNumArgs, getTrace, hashCode, printOperationInternal, toString, toStringInternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cascading.operation.Function
operate
 
Methods inherited from interface cascading.operation.Operation
cleanup, flush, getFieldDeclaration, getNumArgs
 

Field Detail

SAFE_DEFAULT

public static final boolean SAFE_DEFAULT
See Also:
Constant Field Values

spec

protected S extends Spec spec

isSafe

protected boolean isSafe
Constructor Detail

ModelScoringFunction

protected ModelScoringFunction(S spec,
                               boolean safe)

ModelScoringFunction

protected ModelScoringFunction(S spec)
Method Detail

getSpec

public S getSpec()

isSafe

public boolean isSafe()
Specified by:
isSafe in interface Operation<ModelScoringFunction.Context<P>>
Overrides:
isSafe in class BaseOperation<ModelScoringFunction.Context<P>>

prepare

public void prepare(FlowProcess flowProcess,
                    OperationCall<ModelScoringFunction.Context<P>> operationCall)
Specified by:
prepare in interface Operation<ModelScoringFunction.Context<P>>
Overrides:
prepare in class BaseOperation<ModelScoringFunction.Context<P>>


Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.