Skip to main content

lpynn

This is a basic neural network package consisting of a single perceptron node. It can do binary classification.

Usage

Example:

from lpynn.perceptron import init_perceptron, print_perceptron, normalize_input_vectors, Perceptron, train_dataset
from lpython import i32, f64

def main0():
    p: Perceptron = Perceptron(0, [0.0], 0.0, 0, 0.0, 0.0, 0)
    init_perceptron(p, 2, 0.05, 10000, 90.0)
    print_perceptron(p)
    print("=================================")

    input_vectors: list[list[f64]] = [[-1.0, -1.0], [-1.0, 1.0], [1.0, -1.0], [1.0, 1.0]]
    outputs: list[i32] = [1, 1, 1, -1]

    normalize_input_vectors(input_vectors)
    train_dataset(p, input_vectors, outputs)
    print_perceptron(p)

main0()

Metadata

Release files for lpynn 0.0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lpynn 0.0.1.4
File Size Uploaded Provenance Actions
lpynn-0.0.1.4.tar.gz 4.8 kB Without provenance Details for lpynn-0.0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lpynn 0.0.1.4
File Interpreter ABI Platform Actions
lpynn-0.0.1.4-py3-none-any.whl Python 3 none any Details for lpynn-0.0.1.4-py3-none-any.whl

Total release size: 10.7 kB

Release files / lpynn-0.0.1.4.tar.gz

Download URL lpynn-0.0.1.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5e2a4ce7203c19c0f17a47952aefd05096497e4cda12f0a8849bae405acd0e3e
BLAKE2b-256 checksum
How to use checksums
bbe5351e2608a5ff2a6ae7c24f82b282539d9ab8d8251aae5a0bbf77f05e2e72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / lpynn-0.0.1.4-py3-none-any.whl

Download URL lpynn-0.0.1.4-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f7be19aee4abef8263b15d5320b05546047ef4d2d4140cfcf753bf654be2390
BLAKE2b-256 checksum
How to use checksums
d04ede7ea43e33bf0f3c57d056ea1878250e73ecb071c1b4c10ea900cb27cc19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for lpynn 0.0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page