Giter Site home page Giter Site logo

pavlovdog / haruspex Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 6.06 MB

Describing user by his Instagram's page

Jupyter Notebook 97.16% HTML 0.30% CSS 0.81% Python 1.73%
instagram instagram-api python private-api machine-learning predictive-analysis scipy

haruspex's Introduction

================================================================== Describing user by his Instagram page using machine learning

Description of repo

  • env_data.py (Set of functions for getting labels and features from MongoDB)
  • plot_data.py (Few functions for plotting, using matplotlib)
  • Haruspex_sex_prediction.ipynb (Jupyter notebook with predictions for user's sex, using 5 main algorithms)
  • Haruspex_age_prediction.ipynb (The same, but for user's age)
  • dump/users (1351 users, will be much more soon)

Installation

git clone https://github.com/pavlovdog/haruspex.git
cd haruspex
pip install -r requirements.txt
mongorestore --db users dump/users

Algorithmes:

  • SVM
  • Decision trees
  • Naive Bayes
  • Logistic regression
  • K-nearest neighbours

Labels

  • Age (+)
  • Sex (+)
  • Interests
  • Attitude to alcohol
  • Attitude to smoking
  • Current relationships

Features

  • Number of followers (+)
  • Number of followings (+)
  • Number of media (+)
  • Average number of likes (+)
  • Average number of comments (+)
  • Average number of medias per week (+)
  • Average number of mentions
  • Average number of tags
  • List of tags
  • List of followings
  • Average number of smileys in caption (+)
  • Average caption's length (+)
  • Correlation between videos & photos (+)
  • Frequency of new medias (+)
  • List of filteres

Helpful articles

http://kukuruku.co/hub/python/introduction-to-machine-learning-with-python-andscikit-learn

http://bigdataexaminer.com/uncategorized/how-to-run-linear-regression-in-python-scikit-learn/

http://blog.gramant.ru/2012/06/06/f1-measure/

https://www.creighton.edu/fileadmin/user/HSL/docs/ref/Searching_-_Recall_Precision.pdf

haruspex's People

Contributors

pavlovdog avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.