Skip to content

Commit

Permalink
Add SVM Playground
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinCoble committed May 29, 2016
1 parent 898ee1f commit 8f487fb
Show file tree
Hide file tree
Showing 16 changed files with 5,605 additions and 28 deletions.
471 changes: 463 additions & 8 deletions AIToolbox/MLView.swift

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions AIToolbox/SVM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public class SVMModel
{
/// Parameters to be set by the caller
let type : SVMType // Type of SVM problem we are trying to solve
var Cost : Double = 1.0 // Cost parameter for for C_SVM_Classification, ϵSVMRegression and νSVMRegression
var weightModifiers : [(classLabel: Int, multiplier: Double)]? // Cost modifiers for each class
var probability = false // Flag indicating probabilities should be calculated
var kernelParams: KernelParameters
var ϵ = 1e-3 // stopping criteria
var ν = 0.5 // For ν classification and regression
var p = 0.1 // for ϵ regression
public var Cost : Double = 1.0 // Cost parameter for for C_SVM_Classification, ϵSVMRegression and νSVMRegression
public var weightModifiers : [(classLabel: Int, multiplier: Double)]? // Cost modifiers for each class
public var probability = false // Flag indicating probabilities should be calculated
public var kernelParams: KernelParameters
public var ϵ = 1e-3 // stopping criteria
public var ν = 0.5 // For ν classification and regression
public var p = 0.1 // for ϵ regression

// Internal storage

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Here is a list of things I would like to see added to the library. Items marked
5. **Ease-of-Use additions**
* Manual?
* Better markup in the classes for use patterns and auto-complete
* Playgrounds showing the use of some of the algorithms for education purposes (one created! Many more needed)
* Playgrounds showing the use of some of the algorithms for education purposes (two created! Many more needed)

And this is just what came to mind for now. If you have other things you would like to see added or changed, you can email me at [email protected] or open an issue

Expand Down
Loading

0 comments on commit 8f487fb

Please sign in to comment.