alvesvaren / ailib

A simple AI and machine-learning library written in python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AIlib (VERY WIP)

This is a lightweight AI library that works as a wrapper.

Installation

  1. git clone https://github.com/E-Almqvist/ailib.git
  2. Import it in your project and that is it.

Usage

from ailib import ai

my_neural_network = ai.neural_network() # Create an object for your network
my_neural_network.generateLayers( [1, 1] ) # Generate 1 input neuron and 1 output neuron.

my_neural_network.think( [0.2] ) # Make the AI "think" about "0.2" and it will give out 1 output.

# This network does not really do anything usefull. 

See example.py for a better example.

Features

(Checked boxes are implemented features and unchecked has not been implemented yet.)

Neural Networks

  • Thinking
    • Generating neural matrix
    • Prediction
  • Learning
    • Stochastic gradient descent (SGD)
    • Relative learning rate
  • Support for networks of (neural) networks
    • Input/Output passthrough
  • Support for loading trained networks

Other planned features

  • Cool debug colors
  • Multicore processing

About

A simple AI and machine-learning library written in python.

License:GNU General Public License v2.0


Languages

Language:Python 99.0%Language:Shell 1.0%