[Bug]: Error when creating a model: TypeError: ufunc 'isnan' not supported for the input types
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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