Coder Social home page Coder Social logo

Comments (8)

lena-kashtelyan avatar lena-kashtelyan commented on April 20, 2024 1

@riyadparvez, in the short run you can get trials as ax_client.experiment.trials, and you can get parameters from each one of the trials as trial.arm.parameters. Will add this functionality to the service API, too, but that should get you unblocked for now.

from ax.

dongyaoli avatar dongyaoli commented on April 20, 2024

AxClient class has get_best_parameters() method. I don't see any methods in AxClient class that returns all the trials with their parameters and evaluation results. Is there any plans to add such API?

I think you can get the full results using the experiment object inside the client

ax = AxClient()
result = ax.experiment.fetch_data()

from ax.

riyadparvez avatar riyadparvez commented on April 20, 2024

This is what I see if I do print(result.df)

  arm_name metric_name      mean  sem  trial_index
0      0_0   hartmann6 -0.016126  0.0            0
1      0_0      l2norm  1.384382  0.0            0
2      1_0   hartmann6 -0.114288  0.0            1
3      1_0      l2norm  0.663507  0.0            1
4      2_0   hartmann6 -0.009832  0.0            2
5      2_0      l2norm  1.874537  0.0            2

Still no easy way to get the parameters and the metrics.

from ax.

riyadparvez avatar riyadparvez commented on April 20, 2024

@lena-kashtelyan thanks, it worked.

Is it also possible to expose which trial yielded the best results?

from ax.

lena-kashtelyan avatar lena-kashtelyan commented on April 20, 2024

Hello again, @riyadparvez –– currently get_best_parameters outputs a tuple of parameterization and metric values; you can use the former as a workaround for now, to find which trial output the results.

get_best_parameters is still somewhat under development; thank you for the good idea of adding the trial index to its output!

from ax.

lena-kashtelyan avatar lena-kashtelyan commented on April 20, 2024

This is now on master! You can do ax_client.get_trials_data_frame() : )

from ax.

lena-kashtelyan avatar lena-kashtelyan commented on April 20, 2024

This functionality is now available in the latest stable version, 0.1.6!

from ax.

riyadparvez avatar riyadparvez commented on April 20, 2024

Thanks a lot! Will give it a try.

from ax.

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.