All Projects → mljs → svm

mljs / svm

Licence: MIT license
Support Vector Machine in Javascript

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to svm

ExtendedMorphologicalProfiles
Remote sensed hyperspectral image classification with Spectral-Spatial information provided by the Extended Morphological Profiles
Stars: ✭ 32 (+3.23%)
Mutual labels:  svm, svm-classifier
SvmNest
a frame of amd-v svm nest
Stars: ✭ 47 (+51.61%)
Mutual labels:  svm
LIBSVM.jl
LIBSVM bindings for Julia
Stars: ✭ 74 (+138.71%)
Mutual labels:  svm
dzetsaka
dzetsaka : classification plugin for Qgis
Stars: ✭ 61 (+96.77%)
Mutual labels:  svm
GDLibrary
Matlab library for gradient descent algorithms: Version 1.0.1
Stars: ✭ 50 (+61.29%)
Mutual labels:  svm
handson-ml
도서 "핸즈온 머신러닝"의 예제와 연습문제를 담은 주피터 노트북입니다.
Stars: ✭ 285 (+819.35%)
Mutual labels:  svm
ML-Experiments
整理记录本人担任课程助教设计的四个机器学习实验,主要涉及简单的线性回归、朴素贝叶斯分类器、支持向量机、CNN做文本分类。内附实验指导书、讲解PPT、参考代码,欢迎各位码友讨论交流。
Stars: ✭ 85 (+174.19%)
Mutual labels:  svm
machine-learning
Python machine learning applications in image processing, recommender system, matrix completion, netflix problem and algorithm implementations including Co-clustering, Funk SVD, SVD++, Non-negative Matrix Factorization, Koren Neighborhood Model, Koren Integrated Model, Dawid-Skene, Platt-Burges, Expectation Maximization, Factor Analysis, ISTA, F…
Stars: ✭ 91 (+193.55%)
Mutual labels:  support-vector-machine
svm
Tutorial: Support Vector Machine from scratch using Python3
Stars: ✭ 32 (+3.23%)
Mutual labels:  svm
sentiment-analysis-using-python
Large Data Analysis Course Project
Stars: ✭ 23 (-25.81%)
Mutual labels:  svm
turbofan failure
Aircraft engine failure prediction model
Stars: ✭ 23 (-25.81%)
Mutual labels:  svm
introduction-to-machine-learning
A document covering machine learning basics. 🤖📊
Stars: ✭ 17 (-45.16%)
Mutual labels:  svm
bitcoin-prediction
bitcoin prediction algorithms
Stars: ✭ 21 (-32.26%)
Mutual labels:  svm-classifier
Nepali-News-Classifier
Text Classification of Nepali Language Document. This Mini Project was done for the partial fulfillment of NLP Course : COMP 473.
Stars: ✭ 13 (-58.06%)
Mutual labels:  svm-classifier
SentimentAnalysis
基于新浪微博数据的情感极性分析
Stars: ✭ 43 (+38.71%)
Mutual labels:  svm
Breast-cancer-risk-prediction
Classification of Breast Cancer diagnosis Using Support Vector Machines
Stars: ✭ 143 (+361.29%)
Mutual labels:  svm
Fall-Detection-Dataset
FUKinect-Fall dataset was created using Kinect V1. The dataset includes walking, bending, sitting, squatting, lying and falling actions performed by 21 subjects between 19-72 years of age.
Stars: ✭ 16 (-48.39%)
Mutual labels:  svm
text-classification-cn
中文文本分类实践,基于搜狗新闻语料库,采用传统机器学习方法以及预训练模型等方法
Stars: ✭ 81 (+161.29%)
Mutual labels:  svm
VisualML
Interactive Visual Machine Learning Demos.
Stars: ✭ 104 (+235.48%)
Mutual labels:  svm
regression-stock-prediction
Predicting Google’s stock price using regression
Stars: ✭ 54 (+74.19%)
Mutual labels:  svm

ml-svm

NPM version build status David deps npm download

Support Vector Machines in Javascript

⚠️ ⚠️ This is a simplified implementation of SVM, primarily meant for students to understand the algorithm. For real world applications, please check out libsvm-js ⚠️ ⚠️

Implementation of this simplified Sequential Minimization Optimization algorithm

Installation

npm install ml-svm

API

API documentation

Example

// Instantiate the svm classifier
var SVM = require('ml-svm');

var options = {
  C: 0.01,
  tol: 10e-4,
  maxPasses: 10,
  maxIterations: 10000,
  kernel: 'rbf',
  kernelOptions: {
    sigma: 0.5
  }
};

var svm = new SVM(options);

// Train the classifier - we give him an xor
var features = [[0,0],[0,1],[1,1],[1,0]];
var labels = [1, -1, 1, -1];
svm.train(features, labels);

// Let's see how narrow the margin is
var margins = svm.margin(features);

// Let's see if it is separable by testing on the training data
svm.predict(features); // [1, -1, 1, -1]

// I want to see what my support vectors are
var supportVectors = svm.supportVectors();
 
// Now we want to save the model for later use
var model = svm.toJSON();

/// ... later, you can make predictions without retraining the model
var importedSvm = SVM.load(model);
importedSvm.predict(features); // [1, -1, 1, -1] 

Authors

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].