SVM and Parameter Optimization with GridSearchCV

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 เม.ย. 2019
  • Note that data in the Cancer Research file has similarly scaled attributes due to the measurement systems. Hence, I did not run a scaler to transform the data. SVM might be impacted by scale differences in attributes. Hence, it is always a good idea to check data to see if you need to transform the data and scale it before you run SVM.
    During the GridSearchCV when I defined " C':[1,42,10]" (around 24th-minute mark) that line inside the Param only checks C values of 1, 42, and 10 rather than my intended purpose of checking values between 1 to 41 with an increment of 10. The correct way is to define a Numpy array as given below for C and coef0.
    param={'kernel':('linear', 'poly', 'rbf', 'sigmoid'),
    'C':np.arange(1,42,10),
    'degree':np.arange(3,6),
    'coef0':np.arange(0.001,3,0.5),
    'gamma': ('auto', 'scale')}

ความคิดเห็น • 14

  • @christy00008
    @christy00008 4 ปีที่แล้ว

    it will be great that you can provide more videos like this.... thanks for share this one

  • @chenlian2592
    @chenlian2592 4 ปีที่แล้ว

    Thanks for the nice explanation. Crystal clear!!

  • @ijeffking
    @ijeffking 4 ปีที่แล้ว

    Very well explained. Thank you so much.

  • @mohammadtamimkashifi9570
    @mohammadtamimkashifi9570 4 ปีที่แล้ว

    Excellent!

  • @sadamassen4859
    @sadamassen4859 2 ปีที่แล้ว

    Thank you

  • @pavanaputqa
    @pavanaputqa 4 ปีที่แล้ว

    I am getting error at 7th line i.e valueError: unknown label "continuous"

  • @ugochukwu2585
    @ugochukwu2585 3 ปีที่แล้ว

    Hello, please do you also have a tutorial for SVR parameter optimization?..i'm having a hard time with SVR

  • @pavanaputqa
    @pavanaputqa 4 ปีที่แล้ว

    I got not fitted error while running confusion_matrix

  • @ogunbarutcu4251
    @ogunbarutcu4251 3 ปีที่แล้ว +2

    Thanks for this video. I tried these two ways with my data, but python has been running for more than 60 hours and still, I couldn't get a result. Is this possible, or is there any mistake?

    • @ismailcapar1103
      @ismailcapar1103  3 ปีที่แล้ว +1

      It really depends on the data size and your computer speed. You can try the algorithm with a small portion of the data to make sure your code works. Then you can upgrade to a faster computer or just wait.

    • @akhilam5376
      @akhilam5376 ปีที่แล้ว

      @@ismailcapar1103 sir, please provide dataset link, I want to practice this code

  • @AbdulQayyum-kd3gf
    @AbdulQayyum-kd3gf 5 ปีที่แล้ว

    excellent explanation

  • @oozzar2841
    @oozzar2841 4 ปีที่แล้ว

    This is for mutliclass svm?

  • @ragaistanto6722
    @ragaistanto6722 3 ปีที่แล้ว

    Mantap videonya.
    Saya juga ada nih rekomendasi lain buat belajar Tuning Hyperparameter KNN pada python 3 siapa tau cocok hehe.
    th-cam.com/video/IzwOkGuZpsE/w-d-xo.html