Supernet_Duo: A extremley quick and simple neural network classifier now with option to return class or percent sure of that class.
Project description
Supernet_Duo
An extremely powerful, lightweight, and simple text classification model, consisting of two neurons each with assigned jobs and a parabolic non-linear activation function. The weight of the connection between the two neurons is variable, and the model is trained and run instantly on the data provided in a dictionary.
Installation
pip install supernet_duo
Usage
from supernet_duo import network
#Data that the model is trained on
mydata = {'123':'Class1','321':'Class2','01234':'Class1'}
#Text that is run through the model
input_string = '3210'
#Stregnth of the connection between neurons
weight = 4
#Run function
print(network(input_string,mydata,weight,'Class'))
#Output: Class2
#Run function to return the confidence as a float between 0.5 and 1
print(network(input_string,mydata,weight,'Float'))
#Output: 0.9630753667172484
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file supernet_duo-0.1.6-py3-none-any.whl.
File metadata
- Download URL: supernet_duo-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84b2ce3f01bea8d1299adb302c8f0629285b69dd2ea1f15ad0b936ed9d250148
|
|
| MD5 |
4c798b699f974500b8cc5c8ffce2bce5
|
|
| BLAKE2b-256 |
838bc2ce1e817d8bdb808203021fba46ed4546305b7e60969ccc2d51508ff68f
|