Skip to main content

Awesome linearinit created by nxdens

Project description

linearinit

codecov CI

Creates an Fully connect network from nn.linear layers with a given activation. The layer is initialized based on the activation function chosen.

Install it from PyPI

pip install linearinit

Usage

from linearinit.base import FullyConnectedLayers
from linearinit.base import LinearWithInit

fcn = FullyConnectedLayers(layer_sizes=[1, 2, 3], activation=nn.LeakyReLU(), bias=True)

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

linearinit-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

linearinit-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: linearinit-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for linearinit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ebd7ef615d64919008e517c3325f5f16401272e41d2a339e088218ac280f6476
MD5 4c9e80f020e173256ef4bc95650a9e93
BLAKE2b-256 04c4939a8f844a42f58f0e5e53f384de129c1719af4097c5cb6a45dd78566fb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: linearinit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for linearinit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3efe299ed7709044dd530829f277951b04d9b0a806f7cb02b9a35d5a4e347e52
MD5 a68c197a73e56bd13cc0a13f7b0ad1c3
BLAKE2b-256 d9660fba22de80d04ca4f19ddcd31337a8672e0fa6bf40d56845a9d32130861c

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