Coder Social home page Coder Social logo

iamsinghrajat / friends-recommender-in-social-network Goto Github PK

View Code? Open in Web Editor NEW
46.0 0.0 16.0 233 KB

Friends Recommendation and Link Prediction in Social Netowork

Jupyter Notebook 62.00% Python 38.00%
linkprediction machine-learning social-network-analysis datamining recommender-system graphalgorithm network-embedding networkx-graph networkx networkx-drawing-utilities

friends-recommender-in-social-network's Introduction

Link Prediction in Social Netowork

info:A perfect repo for your college project on data mining - link prediction - friends recommender.

How To Use

  1. pip install networkx
  2. To run and understand this code first reach ___EntryPoint___ in python code .

    • facebook_combine.txt is dataset.
    • Facebook dataset is included download others from http://snap.stanford.edu/data/ . Use one with format like twitter_combine.txt or gplus_combine.txt .
    • At entry point you can choose which dataset to use you can even add your own dataset from http://snap.stanford.edu/data/ . Code will work for all dataset.
    • By default it is set to Facebook Data Set
    • sample_positive.txt: all positive friend relation ie. people with connecting edge in graph
    • sample_negative.txt: all negative friend relation ie. people with no connecting edge in graph
    • training.txt: combination of positive and negative to get a dataset of relations
    • features_combined_2.txt: for each relation features like AdamicAdar are calculated and then used for training model
  3. Following Scoring Methods are used to construct feature Set

    • common_neighbors
    • resource_allocation_index
    • jaccard_coefficient
    • adamic_adar_index
    • preferential_attachment
  4. SVM ANN and Logistic Regresssion is used for classificaion

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.