Skip to content

keio-ytlab/researchutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Documentation Status MIT licensed

researchutils

Python utilities for deep learning research

How to use

To install the package

python setup.py install

or if you prefer using pip

pip install .

When developing the package

It is recommended to use develop instead of install option to reflect changes in the directory

python setup.py develop

or if you prefer using pip

pip install -e .

To run tests

python setup.py test

Documents

You can find researchutils documentation here

Contribution guide

New features and bug fixes are welcome. Send PRs.
This project is using GitHub flow (See here for details) for development so do not try to push directly to master branch (It will be rejected anyway).

Target python versions

Target python versions are 2.7, 3.4, 3.5 and 3.6 (as of August 2018).
Use six, future or any other libraries to keep compatibility among above python versions.

Repository structure

Module structure

Write your features under ./researchutils/
Write your tests for the features under ./tests/

When writing utilities for chainer

Keep same directory structure of original chainer as much as possible under ./researchutils/chainer/.
For example, if you are writing new chainer.function, place your new function under
./researchutils/chainer/functions/xxx/
and write import statement in
./researchutils/chainer/functions/__init__.py

Write tests

When adding new feature such as function/class, always and must write test(s) unless it will be rejected.

Where should I write my feature's tests?

When writing tests, for example for feature_module.py, please create test module file of name test_feature_module_name.py and place exactly at the same layer of your feature module.
See below.

├── researchutils
│   ├── __init__.py
│   ...
│   ├── your_owesome_module.py
...
└── tests
    ├── __init__.py
    ...
    ├── test_your_owesome_module.py
    │
    ...

Write documents

Write documents of your new function/class/feature and explain what it does.
Writing documents is hard but helps others understanding what you implemented and how to use it.

Style

We use numpy style docstring. When writing the docs, follow numpy style. See here for details.

Language

Write your document in English.

About

Python utilities for deep learning research

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages