automl / neps

Neural Pipeline Search (NePS): Helps deep learning experts find the best neural pipeline.
https://automl.github.io/neps/
Apache License 2.0
44 stars 11 forks source link

Enforce Integer Constraints in Integer Hyperparameter Search Space Definition #32

Open TarekAbouChakra opened 8 months ago

TarekAbouChakra commented 8 months ago

https://github.com/automl/neps/blob/bcf8d8e0260971722f7f7d91f20366f494bde2cc/src/neps/search_spaces/hyperparameters/integer.py#L10-L14

The IntegerParameter class currently extends FloatParameter, allowing float numbers to be passed in instances where the intention is to define an integer hyperparameter search space. Although this is dealt with internally by rounding, should users be allowed to pass in floats when defining integers in the search spaces ?