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 ?
https://github.com/automl/neps/blob/bcf8d8e0260971722f7f7d91f20366f494bde2cc/src/neps/search_spaces/hyperparameters/integer.py#L10-L14
The
IntegerParameter
class currently extendsFloatParameter
, 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, shouldusers
be allowed to pass in floats when defining integers in the search spaces ?