Train SVM on MATLAB | Support Vector Machine Binary Classification Problem

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024

Комментарии • 16

  • @saimaraza2061
    @saimaraza2061 Год назад +3

    Sir, you have saved my life.....Lots of prayers for you and your family growth .....Stay happy always ..No words to say thankyou sir

    • @saimaraza2061
      @saimaraza2061 Год назад

      @@trevorouma1411 I have collected data by inducing emotion among participants

  • @AbdulRafay-lx4jz
    @AbdulRafay-lx4jz 2 года назад +4

    clear all;
    clc;
    %% Prepare the dataset
    x = banknotes(:, 1:4);
    y = banknotes(:,5);
    rand = randperm(1372);
    xtr = x(rand(1:1100), :);
    ytr = y(rand(1:1100), :);
    xt = x(rand(1101:end), :);
    yt = y(rand(1101:end), :);
    %% Training the model
    model = fitcsvm(xtr, ytr, 'KernelFunction', 'rbf', ...
    'OptimizeHyperparameters', 'auto', ...
    'HyperparameterOptimizationOptions', struct('AcquisitionFunctionName', ...
    'expected-improvement-plus', 'ShowPlots', true));
    %% Test the model
    result = predict(model, xt);
    accuracy = sum(result == yt)/length(yt)*100;
    sp = sprintf("Test Accuracy = %.2f", accuracy);
    disp(sp);

  • @glenmason4788
    @glenmason4788 Год назад +1

    Good simple video, thankyou although would be a better to follow without the background music. Also would be good to show input of unseen data from manual input

  • @PandiyanM22PHD064
    @PandiyanM22PHD064 Год назад

    can you share the video regarding bearing fault classification using CNN in MATLAB sir

  • @Tactical_Ninja0806
    @Tactical_Ninja0806 11 месяцев назад

    I just wanted to know how to get that Objective function model

  • @martinsallai9923
    @martinsallai9923 2 года назад

    Thank you very much it was really helpful for my thesis!

  • @mutiarahmadini7388
    @mutiarahmadini7388 3 года назад +1

    nice video sir. and what if we use a data testing from another set data? can you explain me how to do this? thanks alot sir

  • @rishikkayadav6800
    @rishikkayadav6800 2 года назад

    how can be clasiffiyethe multiclass classification using SVM

  • @khalidkhaled8471
    @khalidkhaled8471 2 года назад

    Thanks sir, i'm working on eye detection tumor can you help me to use this code in my project please ?!

  • @sravanikadagala3595
    @sravanikadagala3595 Год назад

    sir can you plz provide the simulation diagram

  • @osry
    @osry 2 года назад

    Please Im new here. Im working on a project on Using ATLAB (using machine learning for predictive maintenance .) Could you share the code? I have joined the Telegram group

  • @joshuaiyasu9427
    @joshuaiyasu9427 2 года назад

    Wow! helpful Video.
    I joined to your telegram group and I couldn't get the code. can you share me the code please?

    • @AbdulRafay-lx4jz
      @AbdulRafay-lx4jz 2 года назад +1

      clear all;
      clc;
      %% Prepare the dataset
      x = banknotes(:, 1:4);
      y = banknotes(:,5);
      rand = randperm(1372);
      xtr = x(rand(1:1100), :);
      ytr = y(rand(1:1100), :);
      xt = x(rand(1101:end), :);
      yt = y(rand(1101:end), :);
      %% Training the model
      model = fitcsvm(xtr, ytr, 'KernelFunction', 'rbf', ...
      'OptimizeHyperparameters', 'auto', ...
      'HyperparameterOptimizationOptions', struct('AcquisitionFunctionName', ...
      'expected-improvement-plus', 'ShowPlots', true));
      %% Test the model
      result = predict(model, xt);
      accuracy = sum(result == yt)/length(yt)*100;
      sp = sprintf("Test Accuracy = %.2f", accuracy);
      disp(sp);

    • @joshuaiyasu9427
      @joshuaiyasu9427 2 года назад +1

      Thank you