Skip to content

aryanshri123/AdalineImplementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Overview

This repository contains 3 python files in the code folder: adaline.py, adalineimplementation.py, randomdata.py. adaline.py contains the actual adaline model. randomdata.py is a random data generator that is used in adalineimplementation.py to provide a specific example of how one can implement the ADALINE model found in adaline.py.

Notes

I implemented a tanh activation function because it better captures non-linearity in data as opposed to an identity activation function. The use of the hyperbolic tangent function also caused my weights to converge much faster as compared to an identity activation function because of its boundedness:

tanh

I also included a step activation function as I found that that also worked when testing with the specifications of adalineimplementation.py, although it converged much slower as compared to the use of the hyperbolic tangent function:

step

Here as an example call to adalineimplementation showing what the weights converged to as well as the accuracy of the model:

Screenshot 2024-02-07 at 11 21 58 AM

Next Steps

Test on real data with many more features.

Releases

No releases published

Packages

No packages published

Languages