Skip to main content

Deep learning for time series data

Project description

Build Status AppVeyor Build Status Coverage PyPI DOI Binder

The goal of mcfly is to ease the use of deep learning technology for time series classification. The advantage of deep learning is that it can handle raw data directly, without the need to compute signal features. Deep learning does not require expert domain knowledge about the data, and has been shown to be competitive with conventional machine learning techniques. As an example, you can apply mcfly on accelerometer data for activity classification, as shown in the tutorial.

Installation

Prerequisites:

  • Python 2.7, 3.5 or 3.6
  • pip

Installing all dependencies in sparate conda environment:

conda env create -f environment.yml

# activate this new environment
source activate mcfly

To install the package, run in the project directory:

pip install .

Installing on Windows

When installing on Windows, there are a few things to take into consideration. The preferred (in other words: easiest) way to install Keras and mcfly is as follows:

  • Use Anaconda
  • Use Python 3.x, because tensorflow is not available on Windows for Python 2.7
  • Install numpy and scipy through the conda package manager (and not with pip)
  • To install mcfly, run pip install mcfly in the cmd prompt.
  • Loading and saving models can give problems on Windows, see https://github.com/NLeSC/mcfly-tutorial/issues/17

Visualization

We build a tool to visualize the configuration and performance of the models. The tool can be found on http://nlesc.github.io/mcfly/. To run the model visualization on your own computer, cd to the html directory and start up a python web server:

python -m http.server 8888 &

Navigate to http://localhost:8888/ in your browser to open the visualization. For a more elaborate description of the visualization see user manual.

User documentation

User and code documentation.

Contributing

You are welcome to contribute to the code via pull requests. Please have a look at the NLeSC guide for guidelines about software development.

We use numpy-style docstrings for code documentation.

Necessary steps for making a new release

  • Check citation.cff using general DOI for all version (option: create file via 'cffinit')
  • Create .zenodo.json file from CITATION.cff (using cffconvert)
    cffconvert --validate
    cffconvert --ignore-suspect-keys --outputformat zenodo --outfile .zenodo.json
  • Set new version number in mcfly/_version.py
  • Check that documentation uses the correct version
  • Edit Changelog (based on commits in https://github.com/NLeSC/mcfly/compare/v1.0.1...master)
  • Test if package can be installed with pip (pip install .)
  • Create Github release
  • Upload to pypi:
    python setup.py sdist bdist_wheel
    python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
    (or python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* to test first)
  • Check doi on zenodo

Licensing

Source code and data of mcfly are licensed under the Apache License, version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcfly-2.1.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

mcfly-2.1.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file mcfly-2.1.0.tar.gz.

File metadata

  • Download URL: mcfly-2.1.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for mcfly-2.1.0.tar.gz
Algorithm Hash digest
SHA256 707b0d50c3b1c3745621d891e1d0840bf67a24c7523b6d1a15f9b6d69a859ca5
MD5 0d273e63454b905fe48d34b69643a219
BLAKE2b-256 88acb27e6804fb159dcd96548f2a2bdd771fa127270b40737bc6284410866e44

See more details on using hashes here.

File details

Details for the file mcfly-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcfly-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for mcfly-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8981403bd9515da6fdd659a2dae2ba03bb32a84cebed7bf40c2ac8f9e3d525a5
MD5 7d9a0ccc0b355317658d38a9e870a1a9
BLAKE2b-256 90d6abe094777fe0afc4c9f2b52e2f1b14d5fef6c4105e2cd147c5475875e216

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page