Skip to main content

machinePy_logo

machinePy 2.0

Welcome to machinePy, the worlds most user-friendly machine learning neural network library!
To learn how to use it, visit machinePy, where you'll find everything you need to start including detailed examples.

Quick rundown

foo = initnet(network_structure)

Use this function to declare your neural network structure and assign random weights and biases. It takes an array of integers. The first element determines the amount of inputs and the last element determines the amount of outputs. Every element in between represents a hidden layer with the integer value as the amount of neurons in that particular hidden layer.

foo = forward(inputs, weights)

This is the forward propagation function. It takes two arguments, an array of inputs, and an array of weights, which is the output of initnet.

foo = train(inputs, weights, targets, learning_rate)

This is the implementation of the infamous backpropagation. It takes four arguments, an array of inputs, an array of weights, again in the form of initnet, an array of target outputs, and an optional learning rate value, otherwise assigned 0.1.

Example

machinepy_example

import machinepy as mp

inputs = [[0,0],[0,1],[1,0],[1,1]]
outputs = [[1],[0],[0],[1]]
weights = mp.initnet([2,3,1])

epochs = 10000

i = 0
j = 0 
while(i < len(inputs)*epochs):
	weights = mp.train(inputs[j],weights,outputs[j],0.1)
		if(j==3):
			j = 0
		else:
			j+=1
		i+=1

i = 0
while i < len(inputs):
	foo = mp.forward(inputs[i],weights)
	print(foo)
	i+=1

Metadata

Release files for machinepy 2.0.1

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

Source distribution (sdist)

Source distribution for machinepy 2.0.1
File Size Uploaded Provenance Actions
machinepy-2.0.1.tar.gz 3.3 kB Without provenance Details for machinepy-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 7.5 kB

Release files / machinepy-2.0.1.tar.gz

Download URL machinepy-2.0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7bdd92ef28ff4758748dcd16424d0dcf50266ce9b96f8cb2f7fe25e4e6a427f5
BLAKE2b-256 checksum
How to use checksums
88ac7a8c168833dd0722c5df8d4a42e8fd44648dde1ad8d6d229df144761b961
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Release files / machinepy-2.0.1-py3-none-any.whl

Download URL machinepy-2.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ef89377ef2fec64151303c91894cf92571287d66b7c9a9c3c06d7582afda393
BLAKE2b-256 checksum
How to use checksums
9faa0506ee977509a92eabfba67d9624cfd9f11bf6a3f991fd1543541e75d830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Security for machinepy 2.0.1

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.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files No provenance

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