Skip to content

apotursun963/Neural-Network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Layer Perceptron

ann

This project is designed to create an artificial neural network model from scratch. It attempts to recoding the multilayer perceptron (MLP), one of the deep learning models. The model is evaluated on test data, calculating the accuracy and loss, and visualizing predictions.

Usage

from model import NeuralNet

# Building Model
model = NeuralNet(
    input_unit=784,
    hidden_units=[128, 256, 128],
    output_unit=10
)

# Training Model
model.train(x_train, y_train, epoch=2000, learning_rate=0.01)

# Testing Model
model.evulate(x_test, y_test)

Accuracy && Loss

acc_loss