Thank you Ronnie

Sorry for this dumb question but I am a bit confused with the link you sent 
even if it seems straightforward.

I am trying to replace the iris data in 
http://scikit-learn.org/stable/auto_examples/svm/plot_rbf_parameters.html#example-svm-plot-rbf-parameters-py

I changed the portion of the code for input like below :

##############################################################################
# Load and prepare data set
#
# dataset for grid search
#iris = load_iris()
#X = iris.data
#Y = iris.target
X,Y = load_svmlight_file("TrainingSetCONS")
# dataset for decision function visualization

X_2d = X[:, :2]
X_2d = X_2d[Y > 0]
Y_2d = Y[Y > 0]
Y_2d -= 1

# It is usually a good idea to scale the data for SVM training.
# We are cheating a bit in this example in scaling all of the data,
# instead of fitting the transformation on the training set and
# just applying it on the test set.

scaler = StandardScaler()

X = scaler.fit_transform(X)
X_2d = scaler.fit_transform(X_2d)
---------------


What I want to do is estimate C and gamma on my training set, but I am having 
troubles running that code.

Any help is appreciated

Thanks

Rad



On Mar 5, 2013, at 2:22 PM, Ronnie Ghose <[email protected]> wrote:

> http://stackoverflow.com/questions/13590247/using-libsvm-format-in-scikit 
> SO is amazing :)
> 
> 
> On Tue, Mar 5, 2013 at 2:19 PM, Mohamed Radhouane Aniba <[email protected]> 
> wrote:
> Hello everyone,
> 
> I am new to scikit-learn package, I am still trying sone of the examples on 
> the website.
> You have an example on RBF SVM parameters that is very interesting but my 
> only problem is that my data are in libsvm format
> 
> I know that  you have an option for loading this format through 
> load_svm_file, but in that particular example, what should we change to make 
> the RBF parameter script work ?
> 
> Thanks in advance for your help
> 
> Rad
> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to