Code Monkey home page Code Monkey logo

my-offlinerl's People

Contributors

hyc6668378 avatar icaruswizard avatar songyigao avatar sparkmxy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

my-offlinerl's Issues

Losses explode when training COMBO with the default hyperparameters

Hi guys,

Thanks a lot for the codebase you open-sourced.

I'm trying to build on your implementation of model-based offline algorithms (mainly COMBO) to use it with other types of generative models. During my experiments I observed a numerical overflow (Losses exploding to infinity after 9-10 epochs of the agent training). Screenshot below.

This occurs in hopper-v2 environment with the d4rl medium dataset for instance.

Here are the hyperparameters:

seed = 42 

device = 'cuda'+":"+str(select_free_cuda()) if torch.cuda.is_available() else 'cpu'
obs_shape = None
act_shape = None
max_action = None

hidden_layer_size = 400
hidden_layers = 2
transition_layers = 4

transition_init_num = 7
transition_select_num = 5

real_data_ratio = 0.5

transition_batch_size = 256
policy_batch_size = 256
data_collection_per_epoch = 50e3
buffer_size = 120e4
steps_per_epoch = 1000
max_epoch = 500

learnable_alpha = True
transition_lr = 1e-3
actor_lr = 1e-4
critic_lr = 3e-4
target_entropy = None
discount = 0.99
soft_target_tau = 5e-3

num_samples = 10
learnable_beta = True
base_beta = 1.0
lagrange_thresh = 5
with_important_sampling = True

horizon = 5

Command:

python examples/train_d4rl.py --algo_name=combo --exp_name=d4rl-hopper-medium-combo-1 --task d4rl-hopper-medium-v2

combo

Have you observed anything like this before? And if it's a matter of hyperparameters can you suggest the best hyperparameters for the hopper-medium experiment for instance?

Thank you,
Regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.