Skip to main content
100%

SVM

✓ Published0🌍 Public
HHariprashanth75
Last edited Apr 11, 2021
Created on Apr 11, 2021
Forked from Hello VizHub

This example demonstrates a support vector machine (SVM) classifier using the SMO algorithm. Two-dimensional labeled data points (class 1 and class 2) from a JSON file are plotted as colored circles, with D3 scales mapping coordinates to an SVG canvas. Three decision boundary lines are drawn using `d3.svg.line()`, showing the separating hyperplane and its margins based on the computed weight vector and bias. The visualization relies on D3 v3 and a custom SMO implementation for training.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes