Coder Social home page Coder Social logo

birnn's Introduction

Description

The source codes of RITS-I, RITS, BRITS-I, BRITS for health-care data imputation/classification

To run the code:

python main.py --epochs 1000 --batch_size 32 --model brits

Data Format

The data format is as follows:

  • Each line in json/json is a string represents a python dict

  • The structure of each dict is

    • forward
    • backward
    • label #对模型没用

    'forward' and 'backward' is a list of python dicts, which represents the input sequence in forward/backward directions. As an example for forward direction, each dict in the sequence contains:

    • values: list, indicating x_t \in R^d (after elimination)
    • masks: list, indicating m_t \in R^d
    • deltas: list, indicating \delta_t \in R^d
    • forwards: list, the forward imputation, only used in GRU_D, can be any numbers in our model #对模型没用
    • evals: list, indicating x_t \in R^d (before elimination)
    • eval_masks: list, indicating whether each value is an imputation ground-truth

首先运行slovete.py进行数据的处理,此文件里面有个参数n代表连续时间步长度。 要训练模型: python main.py --epochs 1000 --batch_size 32 --model brits 这3个参数可以改变epochs,batch_size 和model

birnn's People

Contributors

zwtinbuaa avatar

Stargazers

 avatar  avatar  avatar

Watchers

Kostas Georgiou 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.