Skip to content

Reduced conversion precision prevents model fitting #225

@jhug12

Description

@jhug12

Describe the bug
The use of float32 precision in the X_to_numpy and y_to_numpy functions leads to numerical problems when fitting the elastic_net_cv forecaster. This reduced precision causes a ValueError in the sklearn api when computing the gram matrix

To Reproduce
Tried unsuccessfully to reproduce it using random data.

**Desktop **

  • OS: Windows 10
  • Python: 3.10.0
  • functime: 0.9.5

Additional context
This issue seems related to the general precision problem discussed in scikit-learn#21997. A potential enhancement could be to allow configuration of precision level through an API option, improving the flexibility and applicability of the model in diverse scenarios.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions