Skip to main content

JAX/Flax implementation of rational neural nets

Project description

RationalNets

JAX/Flax implementation of rational neural nets.

Original

Installation

RationalNets can be installed with pip directly from GitHub, with the following command:

pip install git+https://github.com/yonesuke/RationalNets.git

QuickStart

import jax.numpy as jnp
from jax import random
from rationalnets import RationalMLP

model = RationalMLP([12, 8, 4])
batch = jnp.ones((32, 10))
variables = model.init(random.PRNGKey(0), batch)
output = model.apply(variables, batch)

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

rationalnets-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

rationalnets-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file rationalnets-0.0.1.tar.gz.

File metadata

  • Download URL: rationalnets-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for rationalnets-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5e7e6c608f375fda210dfc66a80b8bd6480eb30cf12c091b92c3a57fcf369237
MD5 6042a191c134f45237639ea01aa92cf4
BLAKE2b-256 1e560b9e48b446ba1a6e1129df26c037ddf5fc6cfa76b9f4074a02c6e6148cea

See more details on using hashes here.

File details

Details for the file rationalnets-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rationalnets-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c631caac68a8e8e0d475eec0017368306b21668a497d5df037d8766421dabcae
MD5 f6a5b16c0aa5c315d77bdefa042c3274
BLAKE2b-256 9efa8616f65b41aee0ae6fd2bc0679753c59b67210fc110f82fb946592bbe7b3

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