Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training KAN on a diabetes classification dataset #217

Open
Chukwuebuka-2003 opened this issue May 19, 2024 · 12 comments
Open

Training KAN on a diabetes classification dataset #217

Chukwuebuka-2003 opened this issue May 19, 2024 · 12 comments

Comments

@Chukwuebuka-2003
Copy link

Now, I tried to train the KAN on a dataset that deals on classification.

My question are these:

image

image

image

image

image

Now when I tried to run this:

image

This was the error that I was seeing: ValueError: array must not contain infs or NaNs

I'm currently stuck here:
image

@KindXiaoming
Copy link
Owner

KindXiaoming commented May 19, 2024

hi, does model.train() work well (doesn't show any NaN)? Can you nail down to whether the problem comes from train or auto_symbolic?

@ChrisD-7
Copy link

@KindXiaoming i think his issue is with the auto_symbolic function cuz it looks like his model is trained and pruned

@Chukwuebuka-2003
Copy link
Author

@KindXiaoming I do think that this issue might be from the auto_symbolic.

Like @ChrisD-7 said, the model has been trained and pruned.

@ChrisD-7
Copy link

@Chukwuebuka-2003 are u facing an issue with the dataset? like what the size is when building this classifier I have a larger dataset and run an issue when passing all features through it so I tried loading it through my GPU and faced an issue how big is ur dataset?

@ChrisD-7
Copy link

yup the low visualization is not that good for classification probs

image

@Chukwuebuka-2003
Copy link
Author

Chukwuebuka-2003 commented May 21, 2024

@ChrisD-7
The dataset that I used isn't big but a little dataset used to train and test classification models. I will share my notebook

@ChrisD-7
Copy link

I ran a model and will share it as well will link my repo

@ChrisD-7
Copy link

@Chukwuebuka-2003 take a look : https://github.com/ChrisD-7/Fraud-Detection-in-Supply-Chains-with-Kolmogorov-Arnold-Networks

@ChrisD-7
Copy link

@Chukwuebuka-2003 were u able to run it ??

@Chukwuebuka-2003
Copy link
Author

@ChrisD-7 I was able to run it, but I came across related errors

Here's the link to my repo on this: https://github.com/Chukwuebuka-2003/kan_diabetes

@ChrisD-7
Copy link

@Chukwuebuka-2003 let me take a look

@ChrisD-7
Copy link

@Chukwuebuka-2003 I have submitted a pull request. Please let me know if there are any additional changes needed:

image

@KindXiaoming I believe this issue can now be closed. The model is functioning well and achieved around 80% accuracy. I encountered some issues with converting the formula to NumPy, but I managed to resolve them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants