Class TAGPolicy<T,A>
- java.lang.Object
-
- ai.libs.jaicore.search.algorithms.mdp.mcts.tag.TAGPolicy<T,A>
-
- All Implemented Interfaces:
IPathUpdatablePolicy<T,A,java.lang.Double>
,IPolicy<T,A>
,org.api4.java.common.control.ILoggingCustomizable
public class TAGPolicy<T,A> extends java.lang.Object implements IPathUpdatablePolicy<T,A,java.lang.Double>, org.api4.java.common.control.ILoggingCustomizable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustThreshold(T node)
A
getAction(T node, java.util.Collection<A> actions)
double
getExplorationConstant()
java.lang.String
getLoggerName()
double
getUtilityOfAction(T node, A action, int k)
This method computes the part (b) in the Streeter papervoid
setExplorationConstant(double explorationConstant)
void
setLoggerName(java.lang.String name)
void
updatePath(org.api4.java.datastructure.graph.ILabeledPath<T,A> path, java.util.List<java.lang.Double> scores)
-
-
-
Method Detail
-
getAction
public A getAction(T node, java.util.Collection<A> actions) throws ActionPredictionFailedException
- Specified by:
getAction
in interfaceIPolicy<T,A>
- Throws:
ActionPredictionFailedException
-
adjustThreshold
public void adjustThreshold(T node)
-
getUtilityOfAction
public double getUtilityOfAction(T node, A action, int k)
This method computes the part (b) in the Streeter paper- Parameters:
node
-action
-- Returns:
-
getExplorationConstant
public double getExplorationConstant()
-
setExplorationConstant
public void setExplorationConstant(double explorationConstant)
-
updatePath
public void updatePath(org.api4.java.datastructure.graph.ILabeledPath<T,A> path, java.util.List<java.lang.Double> scores)
- Specified by:
updatePath
in interfaceIPathUpdatablePolicy<T,A,java.lang.Double>
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerName
in interfaceorg.api4.java.common.control.ILoggingCustomizable
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerName
in interfaceorg.api4.java.common.control.ILoggingCustomizable
-
-