Skip to content

using huggingface met predict error AttributeError: 'IntegrationDataNode' object has no attribute 'predict' #7238

Closed Answered by martyna-mindsdb
chencjiajy asked this question in Get help
Discussion options

You must be logged in to vote

Hi @chencjiajy
I tried to reproduce this error using MindsDB 23.8.3.0 installed locally. But I could execute all commands, including querying for predictions, with no errors.

Please note that the model should be stored in one of the projects (not in example_db).

Here is a sample code from this tutorial that you can try executing:

CREATE DATABASE example_db
WITH ENGINE = "postgres",
PARAMETERS = {
    "user": "demo_user",
    "password": "demo_password",
    "host": "3.220.66.106",
    "port": "5432",
    "database": "demo"
    };

SELECT *
FROM example_db.demo_data.user_comments;

-- model is created in the default project called mindsdb
CREATE MODEL sentiment_classifier
PREDICT sentiment…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by chencjiajy
Comment options

You must be logged in to vote
1 reply
@chencjiajy
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants