Hi Andreas,
there is no difference between two data sets (except scaling).
But that is not a issue. Whenever I try to read data from libsvm format
file using function load_svmlight_file("file_name") it gives me object
which is different then default in tutorials.
for example in tutorial-
http://scikit-learn.org/stable/auto_examples/datasets/plot_iris_dataset.html
# I replaced iris = datasets.load_iris()  by

X_train, y_train = load_svmlight_file("iris.scale")
X =X_train[:,:2]   #  iris.data[:, :2]  # we only take the first two
features.
Y = y_train
x_min, x_max = X[:, 0].min() - .5, X[:, 0].max() + .5
AttributeError: min not found


On Wed, May 30, 2012 at 7:13 PM, Andreas Mueller
<[email protected]>wrote:

> **
> Hi Sheila.
> It would help if you could say what the difference between the two
> datasets is.
> Given the name "iris.scale" I would assume that it is somehow scaled,
> either using zero mean, unit variance, between 0 and 1 or l2 normalized.
> Have you tried using Scaler on the data to see what you get?
>
> Cheers,
> Andy
>
>
> Am 30.05.2012 19:10, schrieb Sheila the angel:
>
> Hi all,
> I am trying to read libsvm format data 'iris.scale' (from
> http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multiclass/iris.scale) 
> as
>
>  from sklearn.datasets import load_svmlight_file
> X_train, y_train = load_svmlight_file('iris.scale')
>
>  I thought this will give same format as
>
>  from sklearn import datasets
> iris = datasets.load_iris()
>
>  Though  y_train is same format as iris.target but X_train is not in same
> format as iris.data !!!
>
>  How can I read a  libsvm format file same as datasets.load_iris()
>
>  Thanks
> --
> Sheila
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
> _______________________________________________
> Scikit-learn-general mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to