public class MultipleIntentionsMLIRLRequest extends MLIRLRequest
MultipleIntentionsMLIRL.| Modifier and Type | Field and Description |
|---|---|
protected int |
k
The number of clusters
|
protected QGradientPlannerFactory |
plannerFactory
A
QGradientPlannerFactory that produces QGradientPlanner objects. |
boltzmannBeta, episodeWeights, rfdomain, expertEpisodes, gamma, planner| Constructor and Description |
|---|
MultipleIntentionsMLIRLRequest(Domain domain,
java.util.List<EpisodeAnalysis> expertEpisodes,
DifferentiableRF rf,
int k,
HashableStateFactory hashableStateFactory)
Initializes using a default
QGradientPlannerFactory.DifferentiableVIFactory that
is based on the provided HashableStateFactory object. |
MultipleIntentionsMLIRLRequest(Domain domain,
QGradientPlannerFactory plannerFactory,
java.util.List<EpisodeAnalysis> expertEpisodes,
DifferentiableRF rf,
int k)
Initializes
|
| Modifier and Type | Method and Description |
|---|---|
int |
getK()
Returns the number of clusters.
|
QGradientPlannerFactory |
getPlannerFactory() |
boolean |
isValid()
Returns true if this request object has valid data members set; false otherwise.
|
void |
setK(int k)
Sets the number of clusters
|
void |
setPlannerFactory(QGradientPlannerFactory plannerFactory)
Sets the
QGradientPlannerFactory to use and also
sets this request object's valueFunction instance to a valueFunction generated from it, if it has not already been set. |
getBoltzmannBeta, getEpisodeWeights, getRf, setBoltzmannBeta, setEpisodeWeights, setPlanner, setRfgetDomain, getExpertEpisodes, getGamma, getPlanner, setDomain, setExpertEpisodes, setGammaprotected int k
protected QGradientPlannerFactory plannerFactory
QGradientPlannerFactory that produces QGradientPlanner objects.public MultipleIntentionsMLIRLRequest(Domain domain, QGradientPlannerFactory plannerFactory, java.util.List<EpisodeAnalysis> expertEpisodes, DifferentiableRF rf, int k)
domain - the domain of the problemplannerFactory - A QGradientPlannerFactory that produces QGradientPlanner objects.expertEpisodes - the expert trajectoriesrf - the DifferentiableRF model to use.k - the number of clusterspublic MultipleIntentionsMLIRLRequest(Domain domain, java.util.List<EpisodeAnalysis> expertEpisodes, DifferentiableRF rf, int k, HashableStateFactory hashableStateFactory)
QGradientPlannerFactory.DifferentiableVIFactory that
is based on the provided HashableStateFactory object.domain - the domain of the problemexpertEpisodes - the expert trajectoriesrf - the DifferentiableRF model to use.k - the number of clustershashableStateFactory - the HashableStateFactory to use for the QGradientPlannerFactory.DifferentiableVIFactory that will be created.public boolean isValid()
IRLRequestisValid in class MLIRLRequestpublic int getK()
public void setK(int k)
k - the number of clusterspublic QGradientPlannerFactory getPlannerFactory()
public void setPlannerFactory(QGradientPlannerFactory plannerFactory)
QGradientPlannerFactory to use and also
sets this request object's valueFunction instance to a valueFunction generated from it, if it has not already been set.
Setting a valueFunction instance ensures that the isValid() methods do not return false.plannerFactory - the QGradientPlannerFactory to use