Giter Site home page Giter Site logo

yunchuankong / gedfn Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 16.0 295 KB

GEDFN: Graph-Embedded Deep Feedforward Network

License: MIT License

Python 100.00%
deep-learning tensorflow gene-expression classification network-analysis deep-neural-networks feedforward-neural-network feature-selection bioinformatics

gedfn's Introduction

GEDFN

GEDFN: graph-embedded deep feedforward networks - Tensorflow implementation

The method is introduced in https://academic.oup.com/bioinformatics/advance-article-abstract/doi/10.1093/bioinformatics/bty429/5021680?redirectedFrom=fulltext.

Prerequisites

The following packages are required for executing the main code file:

Usage

Data formats

  • data matrix (example_expression.csv): a csv file with n rows and p+1 columns. n is the number of samples and p is the number of features (continuous variables, such as gene expression values). The additional column at last is the 0/1 binary outcome variable vector. n=100 and p=500 for the example dataset.
  • feature graph (example_adjacency.txt): a txt file with p rows and p colunms, which is the corresponding adjacency matrix of the feature graph.

NOTE: no headers are allowed in both files.

Run GEDFN

In the terminal, change the directory to the folder under which main.py is located, then type the command

 python main.py "example_expression.csv" "example_adjacency.txt" "var_impo.csv"

where var_impo.csv is the output file for variable importance and will be created by the program automatically. The program will run while printing logs

Epoch: 1 cost = 0.619800305 Training accuracy: 0.5  Training auc: 0.658
Epoch: 2 cost = 0.620009381 Training accuracy: 0.5  Training auc: 0.728
Epoch: 3 cost = 0.610391283 Training accuracy: 0.5  Training auc: 0.782
......
Epoch: 71 cost = 0.142398462 Training accuracy: 0.988  Training auc: 0.999
Epoch: 72 cost = 0.126102197 Training accuracy: 0.988  Training auc: 0.999
Epoch: 73 cost = 0.116139328 Training accuracy: 0.988  Training auc: 1.0
Epoch: 74 cost = 0.121380727 Training accuracy: 0.988  Training auc: 1.0
Epoch: 75 cost = 0.127119239 Training accuracy: 1.0  Training auc: 1.0
Epoch: 76 cost = 0.097086006 Training accuracy: 1.0  Training auc: 1.0
Early stopping.
*****===== Testing accuracy:  0.85  Testing auc:  0.94 =====*****

and the var_impo.csv file is seen in this repo.

Hyperparameters and training options

Seen in the main.py.

gedfn's People

Contributors

yunchuankong avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

gedfn's Issues

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.