Skip to main content

Easy development of machine learning models

Project description

A library to develop machine learning models.

A. Installation

  • 1. Install the desired version of tensorflow (CPU or GPU)

    pip install tensorflow        # for CPU
    pip install tensorflow-gpu    # for GPU
  • 2. Clone the project

    git clone git@github.com:danmar3/twodlearn.git twodlearn
    cd twodlearn
  • 3. Install the project

    pip install -e .
  • 4. Install extras (optional)

    pip install -e .[reinforce]
    pip install -e .[development]

B. Run the tests using pytest

install pytest pip install -U pytest

run the unit-tests using pytest:

cd twodlearn/tests/
pytest -ra                # print a short test summary info at the end of the session
pytest -x --pdb           # drop to PDB on first failure, then end test session
pytest --pdb --maxfail=3  # drop to PDB for first three failures
pytest --durations=10     # get the test execution time
pytest --lf               # to only re-run the failures.
pytest --cache-clear      # clear the cache of failed tests

Roadmap for v0.6

  • [x] migrate to TF 1.14

  • [ ] add documentation

  • [ ] add project to pypi

  • [ ] create LayerNamespace

  • [x] add a shortcut for required and optional input arguments

  • [x] add check_arguments method to Layer and TdlModel

  • [x] get_parameters now supports nested structures and nested SimpleNamespace

  • [ ] deprecate tuple initialization

  • [ ] deprecate optim

  • [ ] move feedforward to dense

  • [ ] cleanup common: clean deprecated descriptors and put them in separate file

  • [ ] remove redundant base classes, such as TdlObject

  • [ ] deprecate templates and design a format for estimators

  • [ ] deprecate options value

  • [ ] deprecate pyfmi and jmodelica

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

twodlearn-0.5.0.tar.gz (146.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twodlearn-0.5.0-py3-none-any.whl (184.4 kB view details)

Uploaded Python 3

File details

Details for the file twodlearn-0.5.0.tar.gz.

File metadata

  • Download URL: twodlearn-0.5.0.tar.gz
  • Upload date:
  • Size: 146.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.7

File hashes

Hashes for twodlearn-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1a6979987b92e4846abfb91f04e70805a4e67e53a883c87eeaf4a9e3e2741574
MD5 3de370346cb109971bf8461ad9b0edb7
BLAKE2b-256 112db7a396e2aeb3df3bead2ad6c3bddc5c79b299e54011023ec3ca9344473fe

See more details on using hashes here.

File details

Details for the file twodlearn-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: twodlearn-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 184.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.7

File hashes

Hashes for twodlearn-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43ebc7538ea0800319c780798810c6d159cfb4bc4e7813b391e4b7e55b5b9841
MD5 4152da0310190e7bdebf229b9644fb5b
BLAKE2b-256 61eea734f37a0faf12b7390bc4cacc49f49a871e130ca336b6b17980cab18aba

See more details on using hashes here.

Supported by

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