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

Slightly better than random #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mdagost
Copy link

@mdagost mdagost commented Dec 13, 2013

It doesn't look like there's a ton of info in the features in this dataset. I'd be interested to know how Grouper's best algorithmn does with these features. I tried lots of different things (feature engineering, various linear models, SVM's, random forests, etc.) Most were around 56% accurate on cross-validation sets. The best random forest model was about 57% accurate and finds, probably unsurprisingly, that the Facebook activity variables are most predictive of whether the users become Facebook friends.

My code has an ipython notebook for exploratory plotting, model building, and variable importance. It uses grid search and cross-validation to find the best type of model. You can run the regular python code to train that model:

/bin/bash cleanDataSets.sh
virtualenv .
pip install -r requirements.txt
python grouper_model.py

Final predictions are in test_data_withpreds.csv

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

Successfully merging this pull request may close these issues.

1 participant