Skip to content

SeyedMuhammadHosseinMousavi/Liquid-Neural-Networks-LNNs-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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.

image

image

LTC-Based Neural Network for Classification, Clustering, and Regression

This repository implements an LTC-based neural network for multiple tasks using the Iris dataset. It includes:

  • Classification: Using a Long-Term Context (LTC) cell for classifying the Iris dataset.
  • Clustering: Visualizing hidden states with KMeans clustering.
  • Regression: Predicting a feature using the LTC cell.

Features

  • LTC Cell: Custom implementation of Long-Term Context cell.
  • Classification: Evaluate average accuracy across multiple iterations.
  • Clustering: Silhouette score and hidden state clustering visualization.
  • Regression: Train and evaluate regression with Mean Squared Error (MSE) and correlation coefficient.

Releases

No releases published

Packages

No packages published

Languages