Skip to main content

Export bundled deep-learning scripts as commented Python files

Project description

dl-algos

Installable package that bundles selected top-level scripts and exports any selected script as a fully commented .py file into the caller's current working directory.

Included Template Scripts

  • autoencoder
  • cnn
  • continuous_perceptorn (from Continuous_perceptorn.py)
  • continuous_perceptron
  • discrete_perceptorn (from Discrete_perceptorn.py)
  • discrete_perceptron
  • gradient_descent
  • lstm
  • adagrad
  • adam
  • momentum
  • nag
  • rms

Install

pip install .

Python API

from dl_exporter import autoencoder, export, list_codes

print(list_codes())
autoencoder("my_auto.py")
export("adam", "adam_notes.py")

Notes:

  • Output path is resolved relative to the caller's current working directory.
  • Existing output files are overwritten.
  • Output always includes a lightweight metadata header.

CLI

List available code names:

dl-export list

Export a selected template:

dl-export save --code gradient_descent --out gd.py

Optional deterministic mode (skip timestamp):

dl-export save --code adam --out adam_notes.py --no-timestamp

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

dl_algos-0.1.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

dl_algos-0.1.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file dl_algos-0.1.0.tar.gz.

File metadata

  • Download URL: dl_algos-0.1.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for dl_algos-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b36a18ba19c7cbd174b41f8b2f24ada41f9eafb1b881699515c4360bf0f56812
MD5 670dda84e0d7d4f7292d726cfeb07bd3
BLAKE2b-256 2ca1733a54bab7a96f8118effa74ba2f03e91f437b4faed8e3826b0cb9e86cf5

See more details on using hashes here.

File details

Details for the file dl_algos-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dl_algos-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for dl_algos-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42ac486ee61bab148b69c8eb0f9773c22fb398f81515c011ab7da2ea038747e9
MD5 1228b9db66ceb5479b44ed8623d26c11
BLAKE2b-256 56c5e590171205019c3148c2799a803d5bd1d0138c7609d7c72e40725ca4d1a4

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