Skip to content

time_limit keyword is not used in fit method #21

@aivarsoo

Description

@aivarsoo

The time_limit keyword is not used in the fit

def fit(
self,
X: npt.ArrayLike,
y: npt.ArrayLike,
*,
alpha: typing.Optional[float] = None,
num_features: typing.Optional[int] = None,
time_limit: typing.Optional[float] = None,
) -> SelectFromQuadraticModel:

The variable time_limit is not passed to the solver, instead, an internal variable is passed.

sampleset = sampler.sample_cqm(cqm, time_limit=self.time_limit,
label=f"{self.__module__}.{type(self).__qualname__}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions