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.

Support different data types for optimization parameters

See original GitHub issue

It would be nice to support different data types—e.g. int, float, bool, and maybe a categorical string—for the parameters over which we optimize. I am not sure what the syntax would look like, except for maybe a list of datatypes passed in that corresponds to the parameter bounds.

All three of these types could be handled the same way, with int being drawn uniformly from the integer interval specified, bool being drawn uniformly from {0, 1}, and categorical strings being mapped to a drawing from integer values [0, 1, ..., n_categories-1] or one-hot encoded as @PedroCardoso suggested below.

See [E. C. Garrido-Merchan and D. Hernandez-Lobato, 2017] for one approach.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:16
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
fmfncommented, May 18, 2018

Interesting, the kernel change they propose wouldn’t be too hard to implement. My only concern is making the API more and more cumbersome by piling features. However this one is requested often enough to be worth considering.

1reaction
janwendtcommented, Mar 22, 2019

+1 I would like to use integers

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Type Optimization in Simulink - MathWorks
Optimize data types in a system based on specified tolerances. Use the Fixed-Point Tool to optimize the data types of a system using...
Read more >
Parameter optimization—ArcGIS Pro | Documentation
The key optimization methods calculate parameter values that are used in the interpolation models.
Read more >
Hyperparameter Optimization in Machine Learning Models
Although there are many hyperparameter optimization/tuning algorithms now, this post discusses two simple strategies: 1. grid search and 2.
Read more >
Parameters - QuantConnect.com
Parameters are project variables that your algorithm uses to define the value of internal variables like indicator arguments or the length ...
Read more >
Hyperparameters Optimization - Towards Data Science
Machine Learning models are composed of two different types of parameters: Hyperparameters = are all the parameters which can be arbitrarily ...
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