SVM
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed