Skip to main content

Yet another neural network toolkit.

Project description

craynn

Yet Another toolkit for Neural Network slightly flavoured by Ultra-High Energy Cosmic Rays.

Philosophy

CrayNN is highly influenced by Lasange:

Simplicity: Be easy to use, easy to understand and easy to extend, to facilitate use in research
Transparency: Do not hide Theano behind abstractions, directly process and return Theano expressions or Python / numpy data types
Modularity: Allow all parts (layers, regularizers, optimizers, ...) to be used independently of Lasagne
Pragmatism: Make common use cases easy, do not overrate uncommon cases
Restraint: Do not obstruct users with features they decide not to use
Focus: "Do one thing and do it well"

Just replace theano with jax.

Installation

via PyPi

pip install craynn

via git

craynn can be installed directly from gitlab.com: pip install git+https://gitlab.com/craynn/craynn.git however, as repository updates frequently, it is recommended to clone the repository and install the package in development mode:

git clone git@gitlab.com:craynn/craynn.git
cd craynn/
pip install -e .

Usage

Take a look at jupyter notebooks in examples/.

Quick guide

craynn is designed for rapidly defining networks of all sorts:

from craynn import network, conv, max_pool

net = network((None, 1, 28, 28))(
  conv(16), conv(24), max_pool(),
  conv(16), conv(24), max_pool(),
  conv(16), conv(24), max_pool(),
)

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

craynn-0.4.0.tar.gz (45.5 kB view details)

Uploaded Source

Built Distribution

craynn-0.4.0-py3-none-any.whl (63.0 kB view details)

Uploaded Python 3

File details

Details for the file craynn-0.4.0.tar.gz.

File metadata

  • Download URL: craynn-0.4.0.tar.gz
  • Upload date:
  • Size: 45.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for craynn-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ca73de5535c9da9f3d778d787b7ae0e4e91be1965b9927bece0f312bd194f268
MD5 f3741ec03600e1c73cc0c0484a540683
BLAKE2b-256 a1cb54495423e9653b46e3c9be384a114dc1f7f02360f4eddaca6aa1fb183065

See more details on using hashes here.

File details

Details for the file craynn-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: craynn-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 63.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for craynn-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1630cf0257e7aecf47146b35402d1978642d87399628f8fed829b5bda6a97569
MD5 4d090179c133e782814ac9cfcd660bad
BLAKE2b-256 fd9bcf255f83b36eab815842cf0f224bfd4dbd0fb4d01e80260fd0f9c9aff9d9

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