This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Stuff made on the machine learning course at my university

Simple neuron

Instantiating a neuron with a sigmoid transfer function:

from am2 import Neuron, SigmoidTransferFunction

neuron = Neuron(SigmoidTransferFunction, weights=[0, 1, 1])
print neuron.run([3, 2, 1])

Or with a staircase transfer function:

from am2 import Neuron, StaircaseTransferFunction

neuron = Neuron(StaircaseTransferFunction, function=lambda y: y > 2, weights=[0, 1, 1])
print neuron.run([1, 1, 1])

function is optional (default is lambda y: y >= 1)

Perceptron

A simple Perceptron is implemented:

from am2 import Perceptron

train_dataset = [
    ((1, 0, 0), 1),
    ((1, 0, 1), 1),
    ((1, 1, 0), 1),
    ((1, 1, 1), 0),
]

perceptron = Perceptron(function=lambda y: y >= 1)
perceptron.train(train_dataset)  # executa o algoritmo de treinamento

print perceptron.run((1, 0, 0))
Release History

Release History

0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting