public interface ValueFunctionApproximation
Modifier and Type | Method and Description |
---|---|
FunctionWeight |
getFunctionWeight(int featureId)
Returns the FunctionWeight for the given function's feature id.
|
java.util.List<ActionApproximationResult> |
getStateActionValues(State s,
java.util.List<GroundedAction> gas)
Returns a state-value (e.g., Q-value) approximation for the query state.
|
ApproximationResult |
getStateValue(State s)
Returns a state value approximation for the query state.
|
WeightGradient |
getWeightGradient(ApproximationResult approximationResult)
Returns the function weight gradient of the given approximation result.
|
int |
numFeatures()
Returns the number of features used in this approximator.
|
void |
resetWeights()
Resets the weights as is learning had never been performed.
|
void |
setWeight(int featureId,
double w)
Sets the weight for a features
|
ApproximationResult getStateValue(State s)
s
- the query state whose state value should be approximatedjava.util.List<ActionApproximationResult> getStateActionValues(State s, java.util.List<GroundedAction> gas)
s
- the query state of the state-action pair to be approximatedgas
- the query action of the state-action pair to be approximtedWeightGradient getWeightGradient(ApproximationResult approximationResult)
approximationResult
- the approximation result whose weight gradient should be returnedvoid resetWeights()
void setWeight(int featureId, double w)
featureId
- the feature id whose weight should be setw
- the weight value to useFunctionWeight getFunctionWeight(int featureId)
featureId
- the id of function's feature whose weight is returned.int numFeatures()