Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

training predictor for pybullet-envs #2

Open
haidertom opened this issue Dec 29, 2021 · 0 comments
Open

training predictor for pybullet-envs #2

haidertom opened this issue Dec 29, 2021 · 0 comments

Comments

@haidertom
Copy link

Hi,
I am currently trying to reproduce the results from the paper for pybullet-envs.
To create the dataset I am using your pretrained TD3 model './models/../best_model.zip'.
However, I get the following error.

File "autoregressive_pybullet.py", line 558, in <module>
    mean_reward, std_reward, observations = evaluate_policy(model, env, n_eval_episodes=args.n_eval_episodes)
ValueError: not enough values to unpack (expected 3, got 2)

evaluate_policy is a function from stable_baselines3.common.evaluation and only returns (mean_reward, std_reward) but no observations.
I therefore modified it such that it also returns a stacked list of observations (n_episodes x episode_lengths).
Is this the correct way to do this?

However, when I then train the predictor and test the anomly detection, the AUC scroes are much lower than reported in the paper: avg AUC: 0.39, max AUC 0.57.

Since not all hyperparameters are specified in the paper I was not sure what to use exactly.
These are the respective commands I used:
python autoregressive_pybullet.py --test_policy --env_name HalfCheetahBulletEnv-v0 --n_eval_episodes 1_000
python autoregressive_pybullet.py --train_predictive_model --env_name HalfCheetahBulletEnv-v0 --is_recurrent_v2 --iterations 10_000
python autoregressive_pybullet.py --anomaly_detection --anomaly_injection 20 --horizons 1 --sampling_sizes 8 --n_eval_episodes 10 --is_recurrent_v2 --env_name HalfCheetahBulletEnv-v0 --case 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant