GithubHelp home page GithubHelp logo

hitf's Introduction

Hidden Interaction Tensor Factorization (IJCAI-18)

This repo contains the PyTorch implementation of the paper Joint Learning of Phenotypes and Diagnosis-Medication Correspondence via Hidden Interaction Tensor Factorization in IJCAI-18. [paper] [dataset]

Requirements

The codes have been tested with the following packages:

  • Python 3.6
  • PyTorch 0.4.1

Quick Demo

To run the model with a quick demo data, simply clone the repo and decompress the data archive by executing the following commands:

git clone [email protected]:jakeykj/hitf.git
cd hitf
tar -xzvf demo_data.tar.gz
python train.py ./demo_data/

A folder ./results/ will be automatically created and the results will be saved there.

Data Format and Organization

The data are stored in three seperate files contained in a folder (we refer to its path by <DATA_PATH>): <DATA_PATH>/D.csv, <DATA_PATH>/M.csv and <DATA_PATH>/labels.csv.

  • D.csv and M.csv: contain the patient-by-diagnosis binary matrix and the patient-by-medication counting matrix, respectively. These two files should be comma seperated.
  • labels.csv: contains the binary label information for each patient in each line. The order of patients must be aligned with the two above matrices.

If you use other datasets, you can organize the input data in the same format described above, and pass the <DATA_PATH> as a parameter to the training script:

python train.py <DATA_PATH>

Citation

If you find the paper or the implementation helpful, please cite the following paper:

@inproceedings{yin2018joint,
  title={Joint learning of phenotypes and diagnosis-medication correspondence via hidden interaction tensor factorization},
  author={Yin, Kejing and Cheung, William K and Liu, Yang and Fung, Benjamin C. M. and Poon, Jonathan},
  booktitle={Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence ({IJCAI-18})},
  pages={3627--3633},
  year={2018},
  organization={AAAI Press}
}

Contact

If you have any enquires, please contact Mr. Kejing Yin by email: cskjyin [AT] comp [DOT] hkbu.edu.hk, or leave your questions in issues.


๐Ÿ‘‰ Check out my home page for more research work by us.

hitf's People

Contributors

jakeykj avatar

Stargazers

 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.