Skip to content

Instantly share code, notes, and snippets.

@karlnapf
Created February 7, 2018 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlnapf/066862c86fa0be2a84511a2f81b2964a to your computer and use it in GitHub Desktop.
Save karlnapf/066862c86fa0be2a84511a2f81b2964a to your computer and use it in GitHub Desktop.
RealMatrix matrix(1,2)
matrix[0,0] = 0.0
matrix[0,1] = 0.1
RealFeatures features()
features.put("feature_matrix", matrix)
Kernel k = kernel("GaussianKernel", log_width=2.0)
KernelMachine svm = kernel_machine("LibSVM", C1=1.1, kernel=k)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment