Skip to content

SeyedMuhammadHosseinMousavi/Liquid-Neural-Networks-LNNs-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Liquid-Neural-Networks-LNNs-Classification

Liquid Neural Networks (LNNs) Classification, Clustering, and Regression ---------------

This code implements a neural network using PyTorch, specifically designed for handling the Iris dataset through various machine learning tasks. It introduces a custom recurrent neural network architecture called LTCNetwork, built around a specialized cell named LTCCell, which features dynamic time constants ( 𝜏 τ) to adjust the neuron's response behavior. This architecture is utilized in three main tasks: first, it performs the classification of Iris species, calculates the average accuracy across multiple trials, and generates detailed performance metrics such as confusion matrices and classification reports. Second, it leverages the model's hidden states to conduct clustering using KMeans, visualizing the clustering outcomes and evaluating their quality with a silhouette score. Lastly, the network is adapted to perform regression to predict sepal length, using other features of the dataset, and evaluates the regression performance by calculating and reporting the mean squared error and correlation coefficient. The script demonstrates the versatility and capability of the LTCNetwork in adapting to different types of data-driven tasks while managing temporal dynamics effectively.

About

Liquid Neural Networks (LNNs) Classification, Clustering, and Regression

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages