Giter VIP home page Giter VIP logo

Comments (6)

dementrock avatar dementrock commented on July 25, 2024

Hi @alexbeloi,

Can you describe some more details? Are you pretraining the entire set of weights or only specific layers?

from rllab.

alexbeloi avatar alexbeloi commented on July 25, 2024

Hi @dementrock,

Thank you for your help. I'm pretraining an entire set of weights (entire MLP network) in a related setting and I would like to initialize the mean network of the GaussianMLPPolicy as using all the weights from all the layers in the pretrained network.

from rllab.

dementrock avatar dementrock commented on July 25, 2024

Do you have a proposed interface for doing this? My current feeling is that this would be a bit application-specific, e.g. a different way to do this would be to only pretrain the first few layers, and randomly initialize the rest.

from rllab.

dementrock avatar dementrock commented on July 25, 2024

In principle you should be able to write a few lines of code to wrap this functionality, since the policy constructor takes a mean_network parameter, which could be your custom-initialized MLP.

from rllab.

alexbeloi avatar alexbeloi commented on July 25, 2024

Unless I'm misunderstanding, it looks to me as though only CategoricalMLPPolicy takes a parameter (prob_network) to initialize its MLP network.

For example the constructor for GaussianMLPPolicy doesn't have a mean_network or std_network parameter or the like. It does have a std_share_network parameter which doesn't appear to do anything. edit: It looks like I was looking at an older version of the code, I see now that GaussianMLPPolicy takes mean_network and std_network as parameters.

I could write a few lines to as you described, I just didn't want to get stuck behind the upstream master branch. If it's agreeable, I can try to write a minimal refactoring (edit: of MLP class) and make a pull request, then you can see if it is sufficiently clean for your future plans with this project.

from rllab.

alexbeloi avatar alexbeloi commented on July 25, 2024

Actually, I just noticed that you have a GaussianMLPRegressor. I'll just use that to do my supervised training, then transfer its mean/std networks to the GaussianMLPPolicy.

Thanks for your active interaction. Apologies for the sudden inundation of requests from me ;-)

from rllab.

Related Issues (20)

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.