Skip to content

Instantly share code, notes, and snippets.

View Saurabh7's full-sized avatar
๐Ÿ˜€
Working

Saurabh Mahindre Saurabh7

๐Ÿ˜€
Working
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from modshogun import *
from numpy import *
f=SparseRealFeatures()
#Load the file and generate labels.(dataset:http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/regression/triazines_scale)
trainlab=f.load_with_labels(LibSVMFile('../../../data/toy/triazines_scale.svm'))
labels_train=RegressionLabels(trainlab)
#Get the feature matrix
mat=f.get_full_feature_matrix()
feats=array(mat)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Saurabh7
Saurabh7 / svmnb1.ipynb
Created June 17, 2014 04:28
svmnb1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.