Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why am I getting poor prediction results? #5

Open
harryqt opened this issue May 18, 2021 · 4 comments
Open

Why am I getting poor prediction results? #5

harryqt opened this issue May 18, 2021 · 4 comments

Comments

@harryqt
Copy link

harryqt commented May 18, 2021

harry@ubuntu-server:~/sentiment$ php74 predict.php
Enter some text to analyze:
rubixml is great
The sentiment is: negative

harry@ubuntu-server:~/sentiment$ php74 predict.php
Enter some text to analyze:
Rubix ML is really great
The sentiment is: positive
@andrewdalpino
Copy link
Member

Hahahhaa hilarious @Dibbyo456 ... ohhhhhh machine learning you! But yeah there can be many reasons for poor real-world performance even on seemingly obvious (for us) examples. What is the validation score your model achieves after training? Were you able to visualize training loss and validation score at each epoch?

The first thing I'd do is try to identify if your model is underfit or overfit. Also note that the model is trained on movie reviews (usually about a couple paragraphs) and therefore is biased (see selection bias) somewhat toward larger blobs of text.

Did you modify the training script at all or did you stick with the default settings?

@harryqt
Copy link
Author

harryqt commented May 21, 2021

Hahahhaa hilarious.... ohhhhhh machine learning you!

🤣

Did you modify the training script at all or did you stick with the default settings?

The only change I did was AdaMax to Adam because of Tensor extension issue as seen on #4

About all the other questions you asked, I have no idea.. But I will try to figure them out.. hopefully.

@harryqt
Copy link
Author

harryqt commented May 21, 2021

msedge_2021-05-21_10-02-24

msedge_2021-05-21_10-02-33

@andrewdalpino
Copy link
Member

andrewdalpino commented May 21, 2021

Sounds good @Dibbyo456, I reminded the Zephir team of the issue just now. Unfortunately, due to a lack of resources we haven't had a chance to improve the demo model on rubixml.com in a very long time - it's likely that someone with any time budget and access to compute will be able to create a more accurate model.

Let us know how well your model performs during CV and training I'll be happy to help you further from there.

@andrewdalpino andrewdalpino changed the title Poor prediction..? (don't know what my question should be!) Why am I getting poor prediction results? May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants