Code Monkey home page Code Monkey logo

scalable-hashtag-recommender-system's Introduction

Scalable Hashtag Recommender System

A hashtag recommender system based on k-means, mini-batch fast k-means and a deep learning feature extraction phase.[1] Usage: hashtag-recommender-system [OPTIONS] Recommends appropriate hashtags for a given image.

Check OPTIONS.md for the list of the possible parameters.

Deploy on Amazon aws via Flintrock

  • Run deploy.sh inside the "deploy" folder. The script is configured to upload another script on the master and on each slave machine. It copies the jar file on each machine. Finally it runs the previously uploaded script "nodesetup" on each machine in parallel. This script downloads and installs all the dependencies (e.g. python, python libraries ecc.) N.B in order to let flintrock access aws machine you need to export the aws keys and id as system keys via: export AWS_ACCESS_KEY_ID="yourawsid" export AWS_SECRET_ACCESS_KEY="yourawskey"

  • Conf.yaml is used by flintrock to configure the cluster properties. One can choose the OS, number of slaves ecc.

  • Once installed all the dependencies, in order to run the jar one needs to login via ssh to the master slave. Then run a script like this:

spark-submit --master spark://ip- --driver-memory 25G --executors-memory 28G --executor-core 8 --class "Main" --deploy-mode client shrs.jar
-f file_path.csv -t tag_listc.txt --image-path "https://image.ibb.co/kYdbKT/IMG_20180725_194058_490.jpg" -c minibatch -i 20 -b 10000 -m spark://ip-:7077

driver-memory, executors-memory and executor core are parameters of master and slaves machines. Spark default uses only 1 GB on each machine.

[1]=https://www.eecs.tufts.edu/~dsculley/papers/fastkmeans.pdf

scalable-hashtag-recommender-system's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

xz8888 troublem1

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.