Skip to content

Update Day 13 SVM.md#16

Merged
Avik-Jain merged 1 commit into
Avik-Jain:masterfrom
bibin-johny:patch-2
Aug 10, 2018
Merged

Update Day 13 SVM.md#16
Avik-Jain merged 1 commit into
Avik-Jain:masterfrom
bibin-johny:patch-2

Conversation

@bibin-johny
Copy link
Copy Markdown
Contributor

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

@addy086
Copy link
Copy Markdown

addy086 commented Aug 6, 2018

Thank

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

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
Dreamer95 pushed a commit to Dreamer95/100-Days-Of-ML-Code that referenced this pull request Aug 4, 2025
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

Successfully merging this pull request may close these issues.

4 participants