Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
"Guiding Future STEM Leaders through Innovative Research Training" ~ thinkingbeyond.education
Image: ubuntu2204
This is a code that compares Kolmogorov Arnold Networks (KANs) with the Multi-Layer Pereptron (MLPs) using the wine dataset
I aim to use graphical representation to understand how each model converges, the maximum accuracy achieved by each model, the loss each model has while training on the dataset.
The comparison would also be done using some criterias such as precision,recall,f1 score and confusion matrix
##Import Necessary Libraries
##Models The models are being called with their default hyperparameter and layers
#Functions All the functions to be used for calculating the accuracies, losses, precision, recall, confusion matrix,plotting the graph are written here.
##Model Functions
##Model Run Function
##Plot Function
##Comparison Criteria Functions
##KAN Hyperparameter Tunning Function
#Dataset The dataset to be used for the analysis is loaded here as well as preparation for the dataset using standard scaler(to make every feature have a mean of 0 and a standard deviation of 1) for faster convergence and imporved performance
##Load Dataset
##Prepare Dataset
Model Run
Running the models over 100 epochs with different hidden layers for MLP and KAN with that of KAN being lower than MLP at all points
Plotting the accuracies and loss over epochs
Calculating other comparison criteria like the classification report and confusion matrix