Skip to main content

Its an implementation of perceptron and can create plots for logic gates

Project description

oneNeuron_pypi

oneNeuron_pypi

How to use this

  1. In the main file create DataFrame for any of the logic gate
  2. import Perceptron from oneNeuron.perceptron API
  3. import prepare_data,save_model and save_plot from utils.all_utils API
  4. There are loggong modules already present in the API's. So, paste the below code as it is in the start of main file
logging_str = "[%(asctime)s: %(levelname)s: %(module)s] %(message)s"
logs_dir = "logs"
os.makedirs(logs_dir, exist_ok=True)
logging.basicConfig(filename=os.path.join(logs_dir, "running_logs.log"),level=logging.INFO, format=logging_str
,filemode='a')
  1. The above logging code creates logs directory and do the logging in running_logs.log file
  2. Then train the model accordingly and include logging wherever needed in the main program
from oneNeuron.perceptron import Perceptron
## get X and y and then use below commands
model = Perceptron(eta=eta, epochs=epochs)
model.fit(X,y)

References -

Official Python Docs

github docs for github actions

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

oneNeuron_pypi-abhishekvarma12345-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file oneNeuron_pypi-abhishekvarma12345-0.1.0.tar.gz.

File metadata

  • Download URL: oneNeuron_pypi-abhishekvarma12345-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for oneNeuron_pypi-abhishekvarma12345-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ca2c803f02c872dfd39fe85128fd404f62a9753cc306839a756cc3bb5e8e8dab
MD5 832f24768fd50ee078fb3babf8cb9c67
BLAKE2b-256 a1604b0fe0148859d7bbf9101a751ed5ac33276fe69298aaebe332c9796ff296

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oneNeuron_pypi_abhishekvarma12345-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for oneNeuron_pypi_abhishekvarma12345-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 280b2dbabe41fa8449e637fd5e1a2076c20f62ebb4128fc1e4d6e0dab3094b78
MD5 2829e8701e08e453ba388db288a157bc
BLAKE2b-256 abd7634caf966f68117f217d58936aa00ed8e79390ad9b0d1511d08a691aa7bd

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