Skip to content

Enforce Integer Constraints in Integer Hyperparameter Search Space Definition #32

@TarekAbouChakra

Description

@TarekAbouChakra

class IntegerParameter(FloatParameter):
def __init__(
self,
lower: float | int,
upper: float | int,

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 ?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions