public class ApprenticeshipLearningRequest extends IRLRequest
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_EPSILON |
static int |
DEFAULT_MAXITERATIONS |
static int |
DEFAULT_POLICYCOUNT |
static boolean |
DEFAULT_USEMAXMARGIN |
protected double |
epsilon
The maximum feature score to cause termination of Apprenticeship learning
|
protected StateToFeatureVectorGenerator |
featureGenerator
The state feature generator that turns a state into a feature vector on which the reward function is assumed to be modeled
|
protected int |
maxIterations
The maximum number of iterations of apprenticeship learning
|
protected int |
policyCount
The maximum number of times a policy is rolled out and evaluated
|
protected StateGenerator |
startStateGenerator
The initial state generator that models the initial states from which the expert trajectories were drawn
|
protected double[] |
tHistory
the history of scores across each reward function improvement
|
protected boolean |
useMaxMargin
If true, use the full max margin method (expensive); if false, use the cheaper projection method
|
domain, expertEpisodes, gamma, planner
Constructor and Description |
---|
ApprenticeshipLearningRequest() |
ApprenticeshipLearningRequest(Domain domain,
Planner planner,
StateToFeatureVectorGenerator featureGenerator,
java.util.List<EpisodeAnalysis> expertEpisodes,
StateGenerator startStateGenerator) |
Modifier and Type | Method and Description |
---|---|
Domain |
getDomain() |
double |
getEpsilon() |
java.util.List<EpisodeAnalysis> |
getExpertEpisodes() |
StateToFeatureVectorGenerator |
getFeatureGenerator() |
double |
getGamma() |
int |
getMaxIterations() |
Planner |
getPlanner() |
int |
getPolicyCount() |
StateGenerator |
getStartStateGenerator() |
double[] |
getTHistory() |
boolean |
getUsingMaxMargin() |
protected void |
initDefaults() |
boolean |
isValid()
Returns true if this request object has valid data members set; false otherwise.
|
void |
setDomain(Domain d) |
void |
setEpsilon(double epsilon) |
void |
setExpertEpisodes(java.util.List<EpisodeAnalysis> episodeList) |
void |
setFeatureGenerator(StateToFeatureVectorGenerator stateFeaturesGenerator) |
void |
setGamma(double gamma) |
void |
setMaxIterations(int maxIterations) |
void |
setPlanner(Planner p) |
void |
setPolicyCount(int policyCount) |
void |
setStartStateGenerator(StateGenerator startStateGenerator) |
void |
setTHistory(double[] tHistory) |
void |
setUsingMaxMargin(boolean useMaxMargin) |
protected StateToFeatureVectorGenerator featureGenerator
protected StateGenerator startStateGenerator
protected double epsilon
protected int maxIterations
protected int policyCount
protected double[] tHistory
protected boolean useMaxMargin
public static final double DEFAULT_EPSILON
public static final int DEFAULT_MAXITERATIONS
public static final int DEFAULT_POLICYCOUNT
public static final boolean DEFAULT_USEMAXMARGIN
public ApprenticeshipLearningRequest()
public ApprenticeshipLearningRequest(Domain domain, Planner planner, StateToFeatureVectorGenerator featureGenerator, java.util.List<EpisodeAnalysis> expertEpisodes, StateGenerator startStateGenerator)
protected void initDefaults()
public boolean isValid()
IRLRequest
isValid
in class IRLRequest
public void setDomain(Domain d)
setDomain
in class IRLRequest
public void setPlanner(Planner p)
setPlanner
in class IRLRequest
public void setFeatureGenerator(StateToFeatureVectorGenerator stateFeaturesGenerator)
public void setExpertEpisodes(java.util.List<EpisodeAnalysis> episodeList)
setExpertEpisodes
in class IRLRequest
public void setStartStateGenerator(StateGenerator startStateGenerator)
public void setGamma(double gamma)
setGamma
in class IRLRequest
public void setEpsilon(double epsilon)
public void setMaxIterations(int maxIterations)
public void setPolicyCount(int policyCount)
public void setTHistory(double[] tHistory)
public void setUsingMaxMargin(boolean useMaxMargin)
public Domain getDomain()
getDomain
in class IRLRequest
public Planner getPlanner()
getPlanner
in class IRLRequest
public StateToFeatureVectorGenerator getFeatureGenerator()
public java.util.List<EpisodeAnalysis> getExpertEpisodes()
getExpertEpisodes
in class IRLRequest
public StateGenerator getStartStateGenerator()
public double getGamma()
getGamma
in class IRLRequest
public double getEpsilon()
public int getMaxIterations()
public int getPolicyCount()
public double[] getTHistory()
public boolean getUsingMaxMargin()