Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

supernet_duo-0.1.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file supernet_duo-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: supernet_duo-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for supernet_duo-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d694410d66677454d0382bdfa76da03d91972ada36f113dd19dfbd676398a327
MD5 a08311010d99d15cede220846077dbb7
BLAKE2b-256 2769a5c45783edb4b189b6c8ed55f3595ee55ee6fe1e953c885249824c76ab8f

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