mindsdb / mindsdb/dataprep_ml

[Bug]: Error when creating a model: TypeError: ufunc 'isnan' not supported for the input types

Open
#49 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
14
Forks
7
Avg merge
15h 27m
Merged PRs (30d)
2

Description

Short description of current behavior

User receives an error when creating a model.

Create model syntax:
CREATE MODEL mindsdb.predictor_sc FROM POC (SELECT * FROM my_table) PREDICT SR ORDER BY TIME GROUP BY type, SC WINDOW 62 HORIZON 5;

Error: TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'', raised at: /home/ubuntu/mindsdb/lib/python3.10/site-packages/mindsdb/integrations/libs/learn_process.py#186

Slack thread: https://mindsdbcommunity.slack.com/archives/C01S2T35H18/p1704269012061049

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the CREATE MODEL example and inspect learn_process.py around line 186, where the TypeError is reported. Trace the input types reaching the failing operation and verify that the supplied grouped time-series model can be created without the ufunc error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.