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.

How to get the best model?

See original GitHub issue

I have tried exactly same as mentioned here for nas problem using regevo

deephyper start-project nas_problems
cd nas_problems/nas_problems/
deephyper new-problem nas polynome2
cd nas_problems/nas_problems/polynome2
python load_data.py
python problem.py
deephyper nas regevo --evaluator ray --problem nas_problems.polynome2.problem.Problem --max-evals 100

After this I am getting a deephyper.log file

Now how to predict a data? Where is the best model located?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
anuragverma77commented, Apr 13, 2021

I found the fix. arch_seq = [21.0, 0.0, 15.0, 0.0, 1.0, 8.0, 0.0, 0.0, 0.0] should be changed to all integers arch_seq = [int(x) for x in arch_seq]

so new arch_seq = [21, 0, 15, 0, 1, 8, 0, 0, 0]

1reaction
Deathn0tcommented, Apr 5, 2021

Yes that’s correct, the result is just a neural network architecture, but the trained parameters are not available by default. We could add this feature in the future. For now, users re-train the best architecture with more data and tend to use less data for the NAS to reduce the cost of the evaluations. The goal of NAS evaluations is mainly to have an estimate of the performance of each neural network.

Also, saving all trained parameters for each architecture can become very costly or take a lot of time if you have many evaluations in parallel.

A possible solution is to use the Keras ModelCheckpoint from Keras and add it to the problem definition.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to choose the best model? - Towards Data Science
Depending on what you compare your aggregated model to, you will use different strategies to update the experts' weights. In fact, there are ......
Read more >
How to Choose the Best Regression Model - Minitab Blog
Given several models with similar explanatory ability, the simplest is most likely to be the best choice. Start simple, and only make the...
Read more >
The Ultimate Guide to Evaluation and Selection of Models in ...
Model selection is a technique for selecting the best model after the individual models are evaluated based on the required criteria.
Read more >
Picking the Best Model with Caret | Kaggle
Of course, you can try to pick the best values for your hyperparameters by just coming up with a bunch of random values...
Read more >
Saving and Loading the Best Model in PyTorch - DebuggerCafe
Utility Classes and Functions · Prepare the CIFAR10 Dataset · The Neural Network Model · The Training Script · Executing train.py · Testing...
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