-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added examples for random goals, and option to not log in base sampler
- Loading branch information
Showing
3 changed files
with
53 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#from rllab.algos.vpg import VPG | ||
from sandbox.rocky.tf.algos.sensitive_vpg import SensitiveVPG | ||
from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline | ||
from examples.point_env import PointEnv | ||
from examples.point_env_randgoal import PointEnvRandGoal | ||
from rllab.envs.normalized_env import normalize | ||
from rllab.misc.instrument import stub, run_experiment_lite | ||
#from rllab.policies.gaussian_mlp_policy import GaussianMLPPolicy | ||
from sandbox.rocky.tf.policies.sens_minimal_gauss_mlp_policy import SensitiveGaussianMLPPolicy | ||
from sandbox.rocky.tf.envs.base import TfEnv | ||
|
||
stub(globals()) | ||
|
||
#env = TfEnv(normalize(PointEnv())) | ||
env = TfEnv(normalize(PointEnvRandGoal())) | ||
policy = SensitiveGaussianMLPPolicy( | ||
name="policy", | ||
env_spec=env.spec, | ||
) | ||
baseline = LinearFeatureBaseline(env_spec=env.spec) | ||
algo = SensitiveVPG( | ||
env=env, | ||
policy=policy, | ||
baseline=baseline, | ||
#plot=True, | ||
) | ||
run_experiment_lite( | ||
algo.train(), | ||
n_parallel=1, | ||
snapshot_mode="last", | ||
seed=1, | ||
#plot=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters