Code Monkey home page Code Monkey logo

Comments (7)

arcelien avatar arcelien commented on May 27, 2024 1

@prob1995 wrote a great visualizer you can try. Unfortunately, the original visualization was done in google sheets / charts so there's no code.

from pba.

arcelien avatar arcelien commented on May 27, 2024

Hey, there's a namedtuple that defines each element in the list per line:

pba/pba/utils.py

Lines 12 to 15 in 950397f

PbtUpdate = collections.namedtuple('PbtUpdate', [
'target_trial_name', 'clone_trial_name', 'target_trial_epochs',
'clone_trial_epochs', 'old_config', 'new_config'
])

So the elements above correspond to each element in this tuple respectively.

from pba.

yichuan9527 avatar yichuan9527 commented on May 27, 2024

Should I use the augmentation strategy of the highest performing child-model to train my model? (For example, if the third child model have highest test accuracy, should I use pbt_policy_3.txt to train mine model ?)

from pba.

yichuan9527 avatar yichuan9527 commented on May 27, 2024

I am so sorry. I still can not understand the meaning of 'target_trial_name', 'clone_trial_name', 'target_trial_epochs', and 'clone_trial_epochs', 'old_config', 'new_config' .

from pba.

arcelien avatar arcelien commented on May 27, 2024

Yes, I'd recommend using the best performing child model to re-train.

The schedule params originate from https://github.com/ray-project/ray/blob/cdc9227f1b7c280465f76639ebc8c28ef7fc332e/python/ray/tune/schedulers/pbt.py#L253-L260

We're logging the trial ids, epoch/iteration numbers, and hyperparameter dict for the original worker and then one we're exploiting to.

from pba.

snownus avatar snownus commented on May 27, 2024

@arcelien could you share the codes to visualize the learned policy such as "Probability Hyperparameters Over Time" and "Magnitude Hyperparameters Over Time" in the github homepage?

from pba.

prob1995 avatar prob1995 commented on May 27, 2024

@snownus I wrote a .ipynb trying to reproduce the figure in the paper. Maybe you can use this.
https://github.com/prob1995/pba/blob/master/Policy_Visualization.ipynb

from pba.

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.