Skip to main content

A small Perceptron package

Project description

Perceptron Package - neuronlinear

Perceptron

Welcome to the neuronlinear ! This package is designed to provide a simple and efficient implementation of the Perceptron algorithm for binary classification tasks. Whether you are new to machine learning or an experienced practitioner, the Perceptron Package offers a versatile and easy-to-use tool for your classification needs.

Features

  • Lightweight and efficient implementation of the Perceptron algorithm
  • Supports both online and batch learning modes
  • Flexible customization options for data preprocessing and feature engineering
  • Simple and intuitive API for training and inference Compatible with Python 3.x

Installation

You can easily install the Perceptron Package using pip:

pip install neuronlinear

Quick Start

Using the neuronlinear Package is straightforward. Here's a simple example to get you started:

from neuronlinear.model import Perceptron, prepare_data


ETA = 0.1 #leaning rate
EPOCHS = 10 #epochs count

# Create a Perceptron object
perceptron = Perceptron(eta=ETA, epochs=EPOCHS)

data = {"x1":[0, 0, 1, 1], "x2" : [0, 1, 0, 1], "y" : [0, 1, 1, 1]}

X, y = prepare_data(data)

perceptron.fit(X, y)
print(f"Prediction for > 0, 1 is {perceptron.predict([0, 1])}")

print(f"Total loss is {model.total_loss}")

Contributing

We welcome contributions from the community! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on our GitHub repository.

License

The neuronlinear Package is licensed under the MIT License.

Acknowledgments

We would like to express our gratitude to the contributors and supporters who have helped make this package possible.

If you find the Perceptron Package useful, please consider giving it a star on GitHub. Your support is greatly appreciated!

Note: The neuronlinear Package is provided as-is without any warranty. Use at your own risk.

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

neuronlinear-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

neuronlinear-0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neuronlinear-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for neuronlinear-0.0.1.tar.gz
Algorithm Hash digest
SHA256 40905ab379a147f7b59119ea89d276b7352f0208c0404104cb9dc39b63005fe3
MD5 962feb18c17520eefb9a5f8f0e0890de
BLAKE2b-256 4279ab8e5132ed9e776f974622a81587c1aed62903f5bcc75de4b695132b6f66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neuronlinear-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for neuronlinear-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12b850d2104a2bddb9b3f8fa80ace4ce66e697e7ec87a49b33405d4a544abbba
MD5 4019bdacfe871af83a0dfe79987af0d8
BLAKE2b-256 c25fa52984a8d9c731e4618186a8a854118018f8fac6ab6792a55e612289e344

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