Skip to main content

Supernet_Duo: A extremley quick and simple neural network classifier, and prediction model now with option to return class or percent sure of that class when using the classifier.

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, predict_net
#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 
training_data = ["hello world","hello there"]
input_string = "h"
output_size = 100
print(predict_net(input_string,output_size,training_data, layer1=1000, layer2=1000, window_size=2))
#output~: hleolworldwtl dhhtolddt therehwltwd eht hw etrere dtethello therello therehrweeedeehoeodere worldeeer

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.7-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: supernet_duo-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b0995306cce288f83d8b81aa2c7b928ca6490ef3b290b8d7ea883ad20aaa0e3b
MD5 bb9078fff6228e6f5688d50b4cf229a6
BLAKE2b-256 39dd2e46e9f6cf090f668dd56fc1eb34e57d95dc64add8d8c3e1a19921aa2d10

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