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

svm-scale returns an empty feature file in case of a single instance #178

Closed
MTawfik93 opened this issue Sep 20, 2021 · 4 comments
Closed

Comments

@MTawfik93
Copy link

Hello, I did train a 3 classes model using RBF kernel with 13 features and 1104 instances which is attached as "Full_Train.txt" and when scaled between -1 and 1 it succeeds but it scales on the y-axis "Full_Train_scaled.txt". And when I scale a file with a single detection or instance during deployment "Classify.txt" it returns an empty feature file with only the label left "Classify_scale.txt".

The command I'm using

 ./svm-scale -l -1 -u 1 Classify.txt>Classify_scale.txt

If you can please tell me if I'm doing something wrong or how to scale over the feature array and produce a scaled single instance file.

Thanks in Advance.

@cjlin1
Copy link
Owner

cjlin1 commented Sep 20, 2021 via email

@MTawfik93
Copy link
Author

Well, when I scale a group of instances together, they produce the scaled values not equal to zero vector, but when I scale only one instance of them alone, the scaled values are zero vector, so why is this happening?

@cjlin1
Copy link
Owner

cjlin1 commented Sep 20, 2021 via email

@MTawfik93
Copy link
Author

Ok Thanks for your help.

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

2 participants