Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A repo where I do my learning stuffs here

Day1: Artificial Neural Network

1.1 Adaline Learning Unipolar and bipolar case

-> These help in solving only the linearly separable problems such as OR, AND, NAND, NOR gates

-> For non-linearly separable problems such as XOR and XNOR they can't predict well.

-> The activator function here will be: if value > 0.5(for unipolar) return 1 else return 0

biasnew = biasold + learning_rate × error

weightsnew = weightold + learning_rate × error × inputs

error = t - predicted_value

predicted_value = Σ (weights × inputs) + bias

1.2 Backpropagation

-> This will solve the non-linearity problem by introducing non-linearity through the hidden neurons.

-> Say for the two input XOR gate it will use two hidden neurons to create non-linearity which will aid in solving the problem.

-> This learning uses the activator function such as Sigmoid function. i.e. 1/(1+e-x)

Forward Pass

hidden_layer_input = Σ(inputs × weights) + bias_input_hidden
hidden_layer_output = Sigmoid(hidden_layer_input)
final_layer_input = Σ(hidden_layer_output × weights) + bias_hidden_output
final_layer_output = Sigmoid(final_layer_input)

Back propagation

δk = (t - yk) × Sigmoid_derivative(yink)
δj = δyinj × Sigmoid_derivative(Zinj)
δyinj = Σ(δk× wjk) where δk = delta output error.

Updating Weights

Δwij = α × δj × xi
Δwjk = α × δk × zj
wnew = wold + Δw

About

This is my learning project list

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages