Class EnsembleTreePolicy<N,A>
- java.lang.Object
-
- ai.libs.jaicore.search.algorithms.mdp.mcts.ensemble.EnsembleTreePolicy<N,A>
-
- All Implemented Interfaces:
IGraphDependentPolicy<N,A>
,IPathUpdatablePolicy<N,A,java.lang.Double>
,IPolicy<N,A>
public class EnsembleTreePolicy<N,A> extends java.lang.Object implements IPathUpdatablePolicy<N,A,java.lang.Double>, IGraphDependentPolicy<N,A>
-
-
Constructor Summary
Constructors Constructor Description EnsembleTreePolicy(java.util.Collection<? extends IPathUpdatablePolicy<N,A,java.lang.Double>> treePolicies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A
getAction(N node, java.util.Collection<A> actions)
void
setGraph(ai.libs.jaicore.graph.LabeledGraph<N,A> graph)
void
updatePath(org.api4.java.datastructure.graph.ILabeledPath<N,A> path, java.util.List<java.lang.Double> scores)
-
-
-
Constructor Detail
-
EnsembleTreePolicy
public EnsembleTreePolicy(java.util.Collection<? extends IPathUpdatablePolicy<N,A,java.lang.Double>> treePolicies)
-
-
Method Detail
-
getAction
public A getAction(N node, java.util.Collection<A> actions) throws ActionPredictionFailedException, java.lang.InterruptedException
- Specified by:
getAction
in interfaceIPolicy<N,A>
- Throws:
ActionPredictionFailedException
java.lang.InterruptedException
-
updatePath
public void updatePath(org.api4.java.datastructure.graph.ILabeledPath<N,A> path, java.util.List<java.lang.Double> scores)
- Specified by:
updatePath
in interfaceIPathUpdatablePolicy<N,A,java.lang.Double>
-
-