question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: How to continue to make new trials from previous trials?

See original GitHub issue

Hello, Since the selection of the optimal parameters can be very time consuming. Often libraries for Bayesian selection of optimal parameters of machine learning models allow us to save the study object. In order to be able to load it in the future and continue the selection of the optimal parameters further from the very same place where we stopped.

for example optuna library

import optuna
from optuna.samplers import TPESampler

study = optuna.create_study(direction="maximize", sampler=TPESampler(n_startup_trials=50))
study.optimize(objective_0, n_trials=100)
joblib.dump(study, 'save_path') # to save hyperparameter object
study = joblib.load(tuna_path) # to restore hyperparameter object
study.optimize(objective_0, n_trials=100) # to continue for a new 100 trials from previous 100 trials (from 100 to 200 trial)

AutoKeras has similar functionality ?

for example

clf = ak.StructuredDataClassifier(
    overwrite=True,
    max_trials=3) # 3 trials
# Feed the tensorflow Dataset to the classifier.
clf.fit(train_set, epochs=10) # fit

Then save clf  object like
clf.save_to_file('....')
Then 
clf.load_from_file.
Then 
clf.fit_for_next_trials from previous ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
haifeng-jincommented, Oct 20, 2020

You don’t need to create a new object. You just run the same .py file again. If you want to create a new object, please make sure all the configs remains the same as the previous one.

0reactions
stale[bot]commented, Dec 20, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions - ClinicalTrials.gov
How do I submit results information if the trial is terminated (that is, stopped prematurely) and no data were collected for one or...
Read more >
What Are Clinical Trials and Studies?
Learn about the phases of clinical trials, why older and diverse participants are needed, and what to ask before participating.
Read more >
Volunteering for research studies: 15 questions to ask
Deciding to take part in a clinical trial is a big decision, so don't be shy, ask the study team whatever questions you...
Read more >
Step 3: Clinical Research - FDA
Before a clinical trial begins, researchers review prior information about the drug to develop research questions and objectives.
Read more >
Questions to Ask about Cancer Treatment Clinical Trials - NCI
What is the purpose of the trial? · Why do the researchers believe that the treatment being studied may be better than the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found