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 DifferentiableQFunction objects. |
boltzmannBeta, episodeWeights, rf
domain, expertEpisodes, gamma, planner
Constructor and Description |
---|
MultipleIntentionsMLIRLRequest(SADomain domain,
java.util.List<Episode> expertEpisodes,
DifferentiableRF rf,
int k,
HashableStateFactory hashableStateFactory)
Initializes using a default
QGradientPlannerFactory.DifferentiableVIFactory that
is based on the provided HashableStateFactory object. |
MultipleIntentionsMLIRLRequest(SADomain domain,
QGradientPlannerFactory plannerFactory,
java.util.List<Episode> 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, setRf
getDomain, getExpertEpisodes, getGamma, getPlanner, setDomain, setExpertEpisodes, setGamma
protected int k
protected QGradientPlannerFactory plannerFactory
QGradientPlannerFactory
that produces DifferentiableQFunction
objects.public MultipleIntentionsMLIRLRequest(SADomain domain, QGradientPlannerFactory plannerFactory, java.util.List<Episode> expertEpisodes, DifferentiableRF rf, int k)
domain
- the domain of the problemplannerFactory
- A QGradientPlannerFactory
that produces DifferentiableQFunction
objects.expertEpisodes
- the expert trajectoriesrf
- the DifferentiableRF
model to use.k
- the number of clusterspublic MultipleIntentionsMLIRLRequest(SADomain domain, java.util.List<Episode> 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()
IRLRequest
isValid
in class MLIRLRequest
public 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