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

Update Day 13 SVM.md #16

Merged
merged 1 commit into from
Aug 10, 2018
Merged

Update Day 13 SVM.md #16

merged 1 commit into from
Aug 10, 2018

Conversation

bibin-johny
Copy link
Contributor

Is that right to use sc.transform in Feature Scaling? I think it is sc.fit_transform()

@addy086
Copy link

addy086 commented Aug 6, 2018

Thank

@Avik-Jain Avik-Jain merged commit fcde48c into Avik-Jain:master Aug 10, 2018
@PatrickRuan
Copy link

I added and modified Day13 code a little below,
1.) added a "print out" for calculating error number at test data.
print('#error@test: ', cm[0,1]+cm[0,1])

2.) used an rbm kernel for SVM,
classifier = SVC(kernel ='rbf', random_state = 0) it helps day 16.

3.) used an poly kernel for SVM, the result won't better than linear: degree=2,..,10
classifier = SVC(kernel = 'poly',degree=3, random_state = 0)
but, try degree = 2, might prive a good practice for beginners: what spaces make data projection like this...

valleykid pushed a commit to valleykid/100-Days-Of-ML-Code that referenced this pull request Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants