Types of Kernels in SVM | MATLAB

  Рет қаралды 2,148

Knowledge Amplifier

Knowledge Amplifier

Күн бұрын

Code:
clc
clear all
close all
warning off
t=0:0.3:2*pi;
x1=30*cos(t)+randn(1,length(t));
y1=30*sin(t)+randn(1,length(t));
z=zeros(1,length(t));
plot3(x1,y1,z,'ro','linewidth',2);
xlim([-100 100])
ylim([-100 100])
zlim([0 1])
hold on;
pause;
t=0:0.3:2*pi;
x2=90*cos(t)+randn(1,length(t));
y2=90*sin(t)+randn(1,length(t));
z=zeros(1,length(t));
plot3(x2,y2,z,'ko','linewidth',2);
pause;
syms x y;
fg=exp(-(x^2+y^2)/1000);
ms=fsurf(fg,[-100 100 -100 100]);
ms.FaceAlpha = 0.4;
ms.EdgeColor = 'none';
hold on;
pause;
z1=exp(-(x1.^2+y1.^2)/1000);
z2=exp(-(x2.^2+y2.^2)/1000);
for i=1:length(t)
plot3([x1(i) x1(i)],[y1(i) y1(i)],[0 z1(i)],'r','linewidth',2);
plot3(x1(i),y1(i),z1(i),'ro','linewidth',4);
pause(0.3);
end
for i=1:length(t)
plot3([x2(i) x2(i)],[y2(i) y2(i)],[0 z2(i)],'k','linewidth',2);
end
plot3(x2,y2,z2,'ko','linewidth',4);
pause;
z=(max(z2)+0.5*(max(z2)+min(z1)));
ms=fsurf(z,'g');
ms.FaceAlpha = 0.2;
ms.EdgeColor = 'none';
Learn Machine Learing with MATLAB:
• Importing Dataset | MA...
#MachineLearning #MATLAB

Пікірлер: 4
Support Vector Machines: All you need to know!
14:58
Intuitive Machine Learning
Рет қаралды 151 М.
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 34 МЛН
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 34 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 108 МЛН
SVM Kernels : Data Science Concepts
12:02
ritvikmath
Рет қаралды 73 М.
Part 25-Support Vector Machines, the Kernel trick
28:11
Pedram Jahangiry
Рет қаралды 3,8 М.
Support Vector Machines: A Visual Explanation with Sample Python Code
22:20
Support Vector Machine | MATLAB
6:44
Knowledge Amplifier
Рет қаралды 6 М.
Support Vector Machines - THE MATH YOU  SHOULD KNOW
11:21
CodeEmporium
Рет қаралды 137 М.
Support Vector Machines Part 3: The Radial (RBF) Kernel (Part 3 of 3)
15:52
StatQuest with Josh Starmer
Рет қаралды 274 М.
MATLAB SVM tutorial (fitcsvm)
24:49
Exploring the Meaning Of Math
Рет қаралды 112 М.