A simple neural network framework built from scratch in Python.
Clone the repository:
git clone https://github.com/ElliottStorey/chillml.git
cd chillmlCreate a simple neural network:
from chillml import Network
from chillml.layers import FullyConnected
from chillml.losses import MeanSquaredError
import numpy as np
# Define layers
layers = [
FullyConnected(4, 1)
]
# Create network
network = Network(layers, MeanSquaredError)
# Train
network.train(training_inputs, training_outputs, 75, 0.01)
# Predict
prediction = network.forward(test_input)See the examples folder for complete examples including:
squares.py- Simple square averaging examplemnist.py- MNIST digit classification
- Fully Connected (Dense) layers
- Mean Squared Error
- Binary Cross Entropy
- ReLU
- Sigmoid
- Softmax
- Tanh (Hyperbolic Tangent)