Published
Edited
Feb 3, 2018
Insert cell
md`# ML.JS SVM Demo`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
svm = new SVM(options)
Insert cell
Insert cell
features = [[0,0],[0,1],[1,1],[1,0]]
Insert cell
Insert cell
labels = [1, -1, 1, -1]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
//// prediction
svm.predict(features)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more