Coder Social home page Coder Social logo

Comments (2)

toshihikoyanase avatar toshihikoyanase commented on May 15, 2024 1

Hi @speedcell4,

Thank you for your interest in Optuna.
Currently, Optuna does not provide functions/methods to import existing experimental results, but we are investigating the best way to implement the trial-import feature.

Here, I want to share my current workaround to import existing results.

  1. Please install Optuna from injected-trial branch:

https://github.com/pfnet/optuna/tree/injected-trial/optuna

  1. Use InjectedTrial.suggest_xxx methods to save existing results. Please refer to the following example for further details:

https://gist.github.com/toshihikoyanase/c90209d0352a119b26e1be7f152dbf53


on the other hand, currently I think I have a workaround

Thank you for sharing your approach.
I think it is workable if you do not use suggest_categorical. Currently, it does not accept dynamic value spaces.

Here's an example to change ranges of suggest_xxx to import externally suggested parameter values.

https://gist.github.com/toshihikoyanase/99f4119f226da4ad227cd6f381136c72

Please note that TPESampler may raise ValueError when we set low==high as reported in #318. I used RandomSampler to avoid the issue in the above example.

If you have any questions, please let me know.

from optuna.

speedcell4 avatar speedcell4 commented on May 15, 2024

Thank you so much, that really helps

from optuna.

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.