Giter Site home page Giter Site logo

danaiamirali / hnb-identity-matching Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 225 KB

A Python Hierarchical Naive Bayes implementation to solve an Identity Matching task.

Jupyter Notebook 79.49% Python 20.51%
bayesian-network identity-matching naive-bayes-classification

hnb-identity-matching's Introduction

Hierarchical Naive Bayes for Identity Matching

Project Description

This repository follows "A hierarchical Naïve Bayes model for approximate identity matching" by Wang, Atabaksh, and Chen in creating a Hierarchical Naive Bayes model to solve an identity matching task. Given two identity records, this model aims to predict whether the pair is a match or non-match. There are two notebooks, process.ipynb and model.ipynb that preprocess the data prior to labeling, and train the model following labeling.

Getting Started

First set up virtual env:

pip install virtualenv

Implement virtual env:

python3 -m venv env
source env/bin/activate

Download dependencies:

pip install -r requirements.txt

Set up pgmpy and the following dependencies, and then set up data (process.ipynb):

replace data/directoryident.tsv with your own file tsv file

Run 'process.ipynb' to produce a new tsv of fully processed data used for discretizing data in model.ipynb + a pickled bins object for a prototype of the model in prototype.py.

Run Model (model.ipynb):

replace data/labeledident.csv with your own file csv file

Run Prototype (prototype.py):

streamlit run prototype.py

more info on wiki page...

hnb-identity-matching's People

Contributors

ajys03 avatar athu1248 avatar danaiamirali avatar emlyychen avatar royull avatar

Watchers

 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.