Code Monkey home page Code Monkey logo

Comments (10)

geoalgo avatar geoalgo commented on May 26, 2024

We have an equivalent that works for regular ranges (e.g. [0.0005, 0.001, 0.002, 0.004]), since finrange and logfinrange allows to encodes finite value ranges correctly.

What is not supported is non regular range (as the one you give as an example). That being said, it is also not clear to me how frequent will that use-case be and how impactful it would be in term of final performance.

from syne-tune.

mseeger avatar mseeger commented on May 26, 2024

Hi guys, with the forthcoming PR on DEHB, I'll also introduce an "ordinal" type which provides what Martin is asking for. This will be choice, but with an integer encoding internally. I can also split this out if that is simpler.

from syne-tune.

mseeger avatar mseeger commented on May 26, 2024

However, "ordinal" will not support a log transform. For that, please use logfinrange and use a regular stepsize in log domain.

from syne-tune.

mseeger avatar mseeger commented on May 26, 2024

Actually, this is already in there: #277 . Martin, let me know if this is what you need.

from syne-tune.

mseeger avatar mseeger commented on May 26, 2024

To be clear: ordinal([0.0005, 0.001, 0.005, 0.01, 0.05, 0.1]) uses an int encoding (0 to 5), but this is not aware of numerical values,

from syne-tune.

wistuba avatar wistuba commented on May 26, 2024

I would still need the original values. how about choice where we can set int or log?

from syne-tune.

mseeger avatar mseeger commented on May 26, 2024

Hmm. ordinal is really just mapping the list of values (say: ['A', 'B', 'C']) to int (say, [0, 1, 2]), the values do not have to be numbers.

Maybe Martin has something more intesting in mind, in which case maybe he wants to change 'ordinal' in the first place?

from syne-tune.

wistuba avatar wistuba commented on May 26, 2024

I simply want to get the same hyperparameter representation for choice([0.0005, 0.001, 0.005, 0.01, 0.05, 0.1]) as for log_uniform(0.0005, 0.1).

from syne-tune.

mseeger avatar mseeger commented on May 26, 2024

I think what you have in mind is something like [0, 1] is partitioned into 6 intervals of different sizes (even after log transform). Sampling is from U[0,1], and you map it to a value by checking in which interval you land.

This is not supported right now, at least not for arbitrary increasing values.

from syne-tune.

wistuba avatar wistuba commented on May 26, 2024

this wouldn't work with surrogate benchmarks, would it?

from syne-tune.

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.