Comments (3)
@pedrofluxa
Can you have a look please ^^
from mindsdb.
your data unit is same in all rows...
from mindsdb.
The reason you are seeing this error is that every row in your table has unit=90
, as @ZaKull correctly pointed out.
This makes type_infer
suggest to dataprep_ml
that this column should be dropped, which in turns causes the time-series pipeline to fail and throw that rather obscure error message.
I modified the file you uploaded to provide you with a working example. Note the following
- Timestamps are now separated by a second
- Timestamps don't have time-zone information (it triggers nasty warnings from
pandas
) As a personal advice, try to always save your timestamps in UTC. - Column
unit
now variates. I would like you to try setting most values to 90 and just a few to different ones to see if it works. My gut feeling is that it won't.
Here is the SQL statements for you to try them out (after uploading the file and name it "data")
--- The following code creates a Generative AI table based on a Time-series model provided by Lightwood.
--- The model requires as input the last 4 measurements and predicts the next two.
---
--- Instructions
--- > Upload "sensor_data_fixed.csv" to MindsDB and name it "data" using the GUI.
--- > Copy and paste this script, execute.
SHOW TABLES FROM files;
--- These files can be queried as tables,
--- You just uploaded sensor_data_non_constant_unit
SELECT * FROM files.data LIMIT 10;
DROP MODEL mindsdb.model66;
CREATE MODEL mindsdb.model66
FROM files
(SELECT * from data)
PREDICT unit
ORDER BY timestamp
WINDOW 4
HORIZON 2;
DESCRIBE mindsdb.model66;
SELECT m.timestamp as date, m.unit as forecast
FROM mindsdb.model66 as m
JOIN files.data as t
WHERE t.timestamp > '2023-12-10';
Good luck!
from mindsdb.
Related Issues (20)
- [Bug]: Missing `langchain_openai` when creating Langchain Engine HOT 1
- [Bug]: Cannot create a LangChain engine HOT 1
- [Bug]: Skill type for agents incorrect error HOT 1
- Project does not exist: mongo_datasource HOT 6
- [Bug]: Agents accessed via SQL give output in a defined format
- [Docs]: Inference API tutorial URL suggestion HOT 2
- [Bug]: elasticsearch database query error HOT 1
- [Docs]: Wrong REST API docs
- [Bug]: Model from OpenAI gpt-3.5-turbo-instruct does not work HOT 1
- [Bug]: User unable to access GUI via MindsDB Extension
- [Bug]: Autogluon dependency does not finish installing
- [Bug]: 'Nonetype' object is not callable
- [Bug]: User unable to install MindsDB Extension
- [Bug]: MindsDB channel list does not display all channels using slack bot token
- [Bug]: 'mindsdb' has no attribute 'Predictor' HOT 1
- [Bug]: Docker Startup Slowed - Downloading package punkt to /root/nltk_data... HOT 1
- [Bug]: Create Validation of MindsDB Inference Handler Does not Catch Invalid Keys
- [Bug]: Server Cannot be Launched - OpenAI API Key Required HOT 1
- [Bug]: ML Engine is not Dropped Correctly When CREATE ML_ENGINE Fails
- [Docs]: Model column mapping
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mindsdb.