Support Vector Machine - SVM - Classification Implementation for Beginners (using python) - Detailed
ฝัง
- เผยแพร่เมื่อ 4 ต.ค. 2024
- Steps followed are:
----------------------------------------
1. Introduction to SVM
Used SVM to build and train a model using human cell records, and classify cells to whether the samples are benign (mild state) or malignant (evil state).
SVM works by mapping data to a high-dimensional feature space so that data points can be categorized, even when the data are not otherwise linearly separable (This gets done by kernel function of SVM classifier). A separator between the categories is found, then the data is transformed in such a way that the separator could be drawn as a hyperplane.
----------------------------------------
2. Necessary imports
----------------------------------------
3. About the Cancer data
----------------------------------------
Original Author - UCI Machine Learning Repository (Asuncion and Newman, 2007)[mlearn.ics.uci....]
Public Source - s3-api.us-geo....
----------------------------------------
4. Load Data From CSV File
The characteristics of the cell samples from each patient are contained in fields Clump to Mit. The values are graded from 1 to 10, with 1 being the closest to benign.
The Class field contains the diagnosis, as confirmed by separate medical procedures, as to whether the samples are benign (value = 2) or malignant (value = 4).
----------------------------------------
5. Distribution of the classes
----------------------------------------
6. Selection of unwanted columns
----------------------------------------
7. Remove unwanted columns
----------------------------------------
8. Divide the data as Train/Test dataset
----------------------------------------
9. Modeling (SVM with Scikit-learn)
----------------------------------------
10. Evaluation (Results)
----------------------------------------
best ever video on youtube on SVM.
It's been almost two years now and you're still helping people with this video. Thank you!!
*four years
Thankyou for your Explanation, I went through a lot of videos in youtube about python, but no one told about Help function.
Great explanation. I was shocked to know that this is the only video he put up in this channel... i really liked this video and patiently listened to it. I have subscribed this channel in the hope that one day you will continue.
Thank you for creating this video
The better video ever clarifying SVM!!😃
Thank you - extremely helpful.
Very thorough explanation, Thank You!
Best video to explain SVM to a beginner!
Best video for intro to SVM!
Its such a great video on SVM that I had understood it from depth we want more such videos please...
Best ever video on TH-cam on SVM❣
really very informative video on svm
That's a very precise and best explanation I have come across.Excellent
Thank u so much sir i have no words to explain my gratitude for this video
Thank you for making the best lecture about SVM❤
keep going ,the session was very good!
Thank you for great explanation Sir, it helped a lot learning practical implementation of SVM
This video helping me to finish my essay and got bachelor title. Thx.
Very comprehensive, detailed and well-elaborated video on SVM, The top best videos on SVM on TH-cam. Thanks for your effort and teaching...
Thank you so much for sharing your knowledge, It was really helpful, keep doing the good work
Beautifully explained. Thank you!
this guy is amazing i swear
Best video on svm.good explained
ThankYou so much. You are saviour.
thank you so much, it was very useful
Very informative and clear lecture 👍🏻👍🏻
beautiful and a wonderful tutorial
Awesome explanations!
Awesome explanation..
great work sir . we also need a video for chatbot also
you are the absolute best!
Great job
Thank you Very much ,keep it up!!!
Awsome explanation..... Thank you sir.......will you make something on random forest, dtree, ann, naive bays, kmeans
Awesome explanation. Cleared all my doubts. Could you please share the code/ jupyter notebook in the comment section. It will be of a great help
well-explained, thanks!
Excellent vdo
permission to learn sir. thank you
Thankyou so much sir!!!
Awesome explanation in depth ;)
btw do you have a github repository or blog where i can find your code ?
Great explanation!!!
can we have more videos like this by you?
Not now. Maybe in the future. I have a conflict of interest.
Nice explanation sir can you make more videos about Naive bayes, KNN, DT. 👌👍
Explanation on SVM so perfect. how about if dataset is unstructed and non-numeric data? Is it can follow as the step in this video?
very nice
Thank you SIR !!!!
This is so good and helping, but only lacks decision boundary. Any idea?
exellent video
Hi sir, thank you for your video and the very clear explanation, really appreciated. Can i ask for the codings that are used in the video?
mila kya code?
Please teach to plot hyperplane also
Thank you so much
THANX
Can I get code??
Bravo!!
please make a video on SVM on Word2Vector... how to train and test data and prediction result using SVM on word2vec. Thanks
THANK YOU!!!
Hello. Thanks for your video. it was really great. I have one question though. does this line mean that only first 200 rows that their class value is 2 will be plotted? I mean we will see only 200 points in the plot?
benign_df = cell_df[cell_df['class'] == 2] [0:200]
thank you for this code sir
Can we use it for trading?
awesome Thanks!
Thanks 👍
Good explanation but please, could you give the name of the book which you've been using during this video?
superb Sir.
Well Explained. I have faced issue at last. when I code classifier.fit(x_train , y_train) .
given error has occurred. ValueError: could not convert string to float: '?' . could you kindly help me out
can u plz provide the notebook ... with source code
Thank you
Y we didn't normalise the dataset array before applying the model kernel?
Thanks a lot
How can we compute the training accuracy only ? Not the testing accuracy.
pls don't use mechanical keyboard the sound is so irritating . The video is overall good
Sir, please make more videos related to ML
Can you please explain about radial base function in spam detection in jupyter please
what does happen when we have more than 2 classes i.e. multiclass??
PLEASE help me sir I'm getting this error on different dataset....ValueError: bad input shape (166, 61)
Thanks
Sir I have faced problem to split train and test data set one error is occured like value error about train set is empty
who will demonstrate of how graphs are plotted
THANKS
Please upload some more videos related to ML
Sir, from where i downloaded this code ?
Sorry, can you help me. How to visualize the result with support vector, hyperplane and max margin?
whats next after this? how do i use this trained model?
i have one question. what if i want to make a model with svm that contains strings in my attributes?
if at step 6 some of the columns are of integer type and some are floating type then. what to do in this case..
Share the Jupiter notebook link of this session pls
please how can be calculation time training model?
Iam getting a bad input shape in step 9 can you explain?
17:00 how do you decide x and y?
Can you share that notebook?
cant u make a graph showing the last code?
There was a significant class imbalance.What about that?
I have a dataset of (only) accidents with both numeric and categorical variables. How can I know with one-class SVM which variables are influencing?
i think u have to first draw a pair plot then u have to see for the best gausian and according to that u have to apply svm for each good gausian attributes, so u will find out what is best influencing
Hi, Thank you for the explanation. May I know if you can share the notebook.
I have intentionally not provided the notebook so that viewers have to write down themselves. It's just 20 lines of code to write.
Why have you stopped making new videos
Please make some more videos
My dataset has no numeric value.its a news archive dataset and i want to detect the noveltyfrom this news archive.i want to use SVM.I need a help.Can anyone help me please?
So I think this will be a dataset in for of statements. So you can try to learn them through SVM.
refer to point 6 of the video.u can convert datatype of each and every column.else u can manually convert those non numeric values in the xlsx file.
say if u have attribute color{red,blue,green} then u can change them to color{1,2,3}
In min 19.08 u just forget to change the label of malignant......
I have one doubt can you help me please
Sir, I need to know about the hyperplane. SVM is the separation so please plot that graph too or please tell me.
Hi @Anmol, a hyperplane in a 2D plot, would be a simple line (or curve) that can separate the different available classes in the data sets. I will try posting a new video, but meanwhile you can refer this nice blog - chrisalbon.com/machine_learning/support_vector_machines/plot_support_vector_classifier_hyperplane/
@@sudhanshu_kulshrestha Thank you sir
47:10 recap
github link please
Sir want your help pls help me🥺