Git Product home page Git Product logo

acerta-abide's Introduction

ACERTA ABIDE DOI

Deep learning using the ABIDE data

Environment Setup

In order to run the deep learning model, you may want to install docker and nvidia-docker to an easy setup.

If you want to install it directly in your machine, you need to install CUDA 8.0 and the packages from requirements.txt:

pip install -r requirements.txt

Running with separate virtual environments

You can also keep a separate set of python libraries to work with the code (if you are not root, or if you have multiple python set ups in the same machine) by running the following commands.

virtualenv env
source env/bin/activate
pip install -r requirements.txt

Just remember to always activate your separate environment before running the code by running

source env/bin/activate

Tensorflow Quirks

If you have multiple CUDA driver installations in your computer, you may also need to specify environment variables indicating where your preferred driver is installed as follows:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/<path/to>/cuda-8.0/targets/x86_64-linux/lib/

Tensorflow will also try to use all available GPUs (and memory) in your system, to prevent that, you need to mask the other GPUs using the CUDA_VISIBLE_DEVICES environment variable. Its parameter is a list of GPU IDs, where GPU ID is the number you see beside the GPU when you list them (e.g. using nvidia-smi), so command:

export CUDA_VISIBLE_DEVICES=1

will only let Tensorflow see the second GPU available in your bus.

Running with Docker

First, you need to build the project image: docker build -t acerta-abide . Second, you need to start a container with this image, in order to execute the next steps: nvidia-docker run -it --rm -v $(realpath .):/opt/acerta-abide acerta-abide /bin/bash

Data preparation

The first step is to download the dataset:

python download_abide.py

This command will download the preprocessed datasets from Amazon S3.

And compile the dataset into CV folds and by experiment.

python prepare_data.py \
    --whole \
    --male \
    --threshold \
    --folds 10 \
    cc200

Model training

python nn.py \
    --whole \
    --male \
    --threshold \
    --folds 10 \
    cc200

Model evaluation

python nn_evaluate.py \
    --whole \
    --male \
    --threshold \
    --folds 10 \
    --mean \
    cc200

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.