wendykan / deeplearningmovies Goto Github PK
View Code? Open in Web Editor NEWKaggle's competition for using Google's word2vec package for sentiment analysis
Kaggle's competition for using Google's word2vec package for sentiment analysis
I slightly changed the input dataformat, instead of 0 and 1 I replaced with BUY , SELL, HOLD, but I am getting the below exception, can you please tell me whats needs to be changed to train the data with the below format.
id sentiment review
0 SELL Not a good stock don't buy.
1 BUY Looks good , go ahead and buy .
2 HOLD Looks okay.
Training the random forest (this may take a while)...
Traceback (most recent call last):
File "BagOfWords.py", line 81, in
forest = forest.fit( train_data_features, train["sentiment"] )
File "/usr/local/lib/python2.7/dist-packages/sklearn/ensemble/forest.py", line 235, in fit
y, expanded_class_weight = self._validate_y_class_weight(y)
File "/usr/local/lib/python2.7/dist-packages/sklearn/ensemble/forest.py", line 421, in _validate_y_class_weight
check_classification_targets(y)
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/multiclass.py", line 173, in check_classification_targets
raise ValueError("Unknown label type: %r" % y)
ValueError: Unknown label type: array([[nan],
Hi,
Could you add a license to the repository, please?
(More info on licensing here: https://help.github.com/articles/licensing-a-repository/)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.