[scikit-learn] error code linear models

2024-02-03 Thread carlos gonzalez
Se encuentra nuevo error en guia de models linear: from sklearn.compose import make_column_transformer from sklearn.preprocessing import OneHotEncoder categorical_columns = ["RACE", "OCCUPATION", "SECTOR", "MARR", "UNION", "SEX", "SOUTH"] numerical_columns = ["EDUCATION", "EXPERIENCE", "AGE"] pr

[scikit-learn] error code linear models

2024-02-03 Thread carlos gonzalez
Dear friends, this is a friend from Latin America reporting the error in one of his guides, the one on linear problems, which in the following paragraph represents a variable through (sns): train_dataset = X_train.copy() train_dataset.insert(0, "WAGE", y_train) _ = sns.pairplot(train_dataset, kind

Re: [scikit-learn] Error with Kfold cross vailidation

2018-10-25 Thread bright silas Aboh
Ok. And thanks On Wed, 24 Oct 2018 at 22:53, Joel Nothman wrote: > Yes, it is not iterable. You are copying a tutorial or code that describes > the usage of sklearn.cross_validation.KFold, which no longer exists in > version 0.20. Find an example with the newer sklearn.model_selection.KFold. > >

Re: [scikit-learn] Error with Kfold cross vailidation

2018-10-24 Thread Joel Nothman
Yes, it is not iterable. You are copying a tutorial or code that describes the usage of sklearn.cross_validation.KFold, which no longer exists in version 0.20. Find an example with the newer sklearn.model_selection.KFold. On Thu, 25 Oct 2018 at 00:36, bright silas Aboh wrote: > Okey. I did remov

Re: [scikit-learn] Error with Kfold cross vailidation

2018-10-24 Thread bright silas Aboh
Yes.Its the latest On Wed, 24 Oct 2018 at 13:37, serafim loukas wrote: > What is your scikit learn version? > > In case you have the latest try to reinstall the module. > > On 24 Oct 2018, at 15:36, bright silas Aboh wrote: > > Okey. I did removed the data.shape as suggested but I am now havin

Re: [scikit-learn] Error with Kfold cross vailidation

2018-10-24 Thread serafim loukas
What is your scikit learn version? In case you have the latest try to reinstall the module. On 24 Oct 2018, at 15:36, bright silas Aboh mailto:sbrighta...@gmail.com>> wrote: Okey. I did removed the data.shape as suggested but I am now having a new error that says: Kfold object not iterable O

Re: [scikit-learn] Error with Kfold cross vailidation

2018-10-24 Thread bright silas Aboh
Okey. I did removed the data.shape as suggested but I am now having a new error that says: Kfold object not iterable On Wed, 24 Oct 2018 at 13:23, Gael Varoquaux wrote: > > kf = KFold(data.shape[0], n_splits=5) > > TypeError: __init__() got multiple values for argument 'n_splits' > > Don't spe

Re: [scikit-learn] Error with Kfold cross vailidation

2018-10-24 Thread Gael Varoquaux
>   kf = KFold(data.shape[0], n_splits=5) > TypeError: __init__() got multiple values for argument 'n_splits' Don't specify data.shape[0], this is no longer necessary in the recent versions of scikit-learn. ___ scikit-learn mailing list scikit-learn@pyth

Re: [scikit-learn] Error with Kfold cross vailidation

2018-10-24 Thread bright silas Aboh
yes please. I import KFold from sklearn.model_selection On Wed, Oct 24, 2018 at 12:02 PM serafim loukas wrote: > Hello, > > > Do you import KFold from sklearn.model_selection ? > > > > On 24 Oct 2018, at 13:29, bright silas Aboh wrote: > > Hi Everyone, > > I am Bright and am trying to build a m

Re: [scikit-learn] Error with Kfold cross vailidation

2018-10-24 Thread serafim loukas
Hello, Do you import KFold from sklearn.model_selection ? On 24 Oct 2018, at 13:29, bright silas Aboh mailto:sbrighta...@gmail.com>> wrote: Hi Everyone, I am Bright and am trying to build a machine learning model with sklearn I get the following error however, can someone please help me?

[scikit-learn] Error with Kfold cross vailidation

2018-10-24 Thread bright silas Aboh
Hi Everyone, I am Bright and am trying to build a machine learning model with sklearn I get the following error however, can someone please help me? kf = KFold(data.shape[0], n_splits=5) TypeError: __init__() got multiple values for argument 'n_splits' Thank you ___

Re: [scikit-learn] Error

2018-05-21 Thread Roman Yurchak
sorry to be brief and potential misspell. *From:* aqsdm...@gmail.com <mailto:aqsdm...@gmail.com> *Sent:* 21 May 2018 11:12 am *To:* scikit-learn@python.org <mailto:scikit-learn@python.org> *Reply to:* scikit-learn@python.org <mailto:scikit-learn@python.org>

Re: [scikit-learn] Error

2018-05-21 Thread aijaz qazi
.com > *Sent:* 21 May 2018 11:12 am > *To:* scikit-learn@python.org > *Reply to:* scikit-learn@python.org > *Subject:* [scikit-learn] Error > > Scikit Multilearn <http://scikit.ml/> does not work. > > > > > *Regards,* > *Aijaz A.Qazi <http://A.Qazi>*

Re: [scikit-learn] Error

2018-05-21 Thread Guillaume Lemaître
.From: aqsdm...@gmail.comSent: 21 May 2018 11:12 amTo: scikit-learn@python.orgReply to: scikit-learn@python.orgSubject: [scikit-learn] Error

[scikit-learn] Error

2018-05-21 Thread aijaz qazi
Scikit Multilearn does not work. *Regards,* *Aijaz A.Qazi * ___ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn

Re: [scikit-learn] Error random_state parameter changed by estimator

2018-04-01 Thread Chris Aridas
Hey Manoj, I think that the following link can help you to solve your problem. http://scikit-learn.org/stable/developers/contributing.html#random-numbers Best, Chris On Sat, Mar 31, 2018 at 5:38 AM, Manoj Karthick wrote: > I am working on adding a new estimator to the scikit-learn library, b

[scikit-learn] Error random_state parameter changed by estimator

2018-03-30 Thread Manoj Karthick
I am working on adding a new estimator to the scikit-learn library, but the make command always exits with the below error message: AssertionError: Estimator XYZ should not change or mutate the parameter random_state from 0 to during fit. Can you help me understand what the issue is? Error l

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-09 Thread Aniket Meshram
hi All, I've created a pull request for updating the README.rst. https://github.com/scikit-learn/scikit-learn/pull/10276 Thanks, Aniket On Thu, Dec 7, 2017 at 1:32 AM, Joel Nothman wrote: > We're biased, but we reckon the skills to make a PR are (a) not > insurmountable with a bit of homework

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-06 Thread Joel Nothman
We're biased, but we reckon the skills to make a PR are (a) not insurmountable with a bit of homework; and (b) very worthwhile to have. So try pick it up by yourself, but give us a shout if you're struggling. ___ scikit-learn mailing list scikit-learn@pyt

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-06 Thread Aniket Meshram
Alright, i'll make a pull request. But let me tell you guys, I'm totally new to github. This is my first contribution. And until few days back, i didn't even knew what a pull request was. Anyways, what i mean is even though i make a request, it'll take time for me to understand this whole changing

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-05 Thread Joel Nothman
A PR is welcome if you can improve documentation. Thanks On 6 December 2017 at 04:01, Aniket Meshram wrote: > Yeah. That did it. After updating Cython to latest 0.27.3, the issue is > resolved now. > Thanks all. I guess this should also be updated on the site / github as > well. What'd you say?

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-05 Thread Aniket Meshram
Yeah. That did it. After updating Cython to latest 0.27.3, the issue is resolved now. Thanks all. I guess this should also be updated on the site / github as well. What'd you say? Best, Aniket On Tue, Dec 5, 2017 at 12:58 PM, Aniket Meshram wrote: > I'm using Ubuntu 16.04 LTS Xenial, which show

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-04 Thread Aniket Meshram
I'm using Ubuntu 16.04 LTS Xenial, which shows 0.23.4-0ubuntu5 as the latest. https://packages.ubuntu.com/search?keywords=cython But yes, you are right, I checked on official Cython and I'll

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-04 Thread Andreas Mueller
Please stay on the mailing list. That's not the current version. Please try updating as Olivier suggested. On 12/04/2017 01:52 PM, Aniket Meshram wrote: $ cython --version Cython version 0.23.4 On Mon, Dec 4, 2017 at 10:28 PM, Andreas Mueller > wrote: What version

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-04 Thread Luigi Lomasto
You can try to use python 3 with pip3 Inviato da iPhone > Il giorno 04 dic 2017, alle ore 18:16, Albert Thomas > ha scritto: > > Maybe run ‘make clean’ before running pip install ... > > Albert >> On Mon 4 Dec 2017 at 16:11, Aniket Meshram >> wrote: >> I updated all the packages before run

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-04 Thread Albert Thomas
Maybe run ‘make clean’ before running pip install ... Albert On Mon 4 Dec 2017 at 16:11, Aniket Meshram wrote: > I updated all the packages before running install. > > On Mon, Dec 4, 2017 at 6:07 PM, Olivier Grisel > wrote: > >> Maybe update your version of Cython? >> >> -- >> Olivier >> ​ >> >

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-04 Thread Aniket Meshram
I updated all the packages before running install. On Mon, Dec 4, 2017 at 6:07 PM, Olivier Grisel wrote: > Maybe update your version of Cython? > > -- > Olivier > ​ > > ___ > scikit-learn mailing list > scikit-learn@python.org > https://mail.python.org

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-04 Thread Olivier Grisel
Maybe update your version of Cython? -- Olivier ​ ___ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-03 Thread Aniket Meshram
hi Joel. Please find attached full log for 'pip install --editable .' *Are you sure you want to build from source?* *[Well, I'm trying the development version, since I'd like to help fix bugs. Wait, so you mean we are experiencing issue with source install. Oh man!. if Yes, then can you please su

Re: [scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-02 Thread Joel Nothman
There's not enough information there for us to help you. Please provide the full log if possible. Are you sure you want to build from source? On 2 December 2017 at 08:05, Aniket Meshram wrote: > hi, > > I'm following the 'ways to contribute page' > > After forking and cloning, I ran the command

[scikit-learn] Error while running 'python setup.py build_ext --inplace'

2017-12-01 Thread Aniket Meshram
hi, I'm following the 'ways to contribute page' After forking and cloning, I ran the command 'python setup.py build_ext --inplace' which is giving me the following error: cc1: some warnings being treated as errors error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstri

Re: [scikit-learn] Error while using GridSearchCV.

2017-03-12 Thread Shubham Singh Tomar
Hi, guys! Thanks for the responses. @Fernando: Yes, this code is, in fact, part of Udacity's Boston Housing project. I'm currently working on my MLE Nanodegree. I was able to modify the code to go with *sklearn.model_selection*, as you suggested. And, it's great to see you help Udacity students

Re: [scikit-learn] Error while using GridSearchCV.

2017-03-07 Thread Fernando Marcos Wittmann
Hey Shubham, I am a project reviewer at Udacity. This code seems to be part of one of our projects (P1 - Boston Housing ). I think that you have updated the old module sklearn.cross_validation to the mod

Re: [scikit-learn] Error while using GridSearchCV.

2017-03-07 Thread Roman Yurchak
Shubham, the definition of ShuffleSplit.__init__ is ShuffleSplit(n_splits=10, test_size=0.1, train_size=None, random_state=None) you are passing the n_split parameter twice (once named and once as the first parameter), as the exception that you getting says, -- Roman On 07/03/17 14:24, Shub

[scikit-learn] Error while using GridSearchCV.

2017-03-07 Thread Shubham Singh Tomar
Hi, I'm trying to use GridSearchCV to tune the parameters for DecisionTreeRegressor. I'm using sklearn 0.18.1 I'm getting the following error: ---TypeError Traceback (most recent call last) in

Re: [scikit-learn] error from import sklearn

2016-07-29 Thread Lifan Xu
Hi, I found the problem was caused by another python source file named "opcode.py". Because python2.7 also has a source file named "opcode.py" If I rename my file to "opcode_extract.py", then problem solved. Thanks. On Fri, Jul 29, 2016 at 10:32 AM, Andreas Mueller wrote: > Hi Lifan. > It loo

Re: [scikit-learn] error from import sklearn

2016-07-29 Thread Andreas Mueller
Hi Lifan. It looks like there's something wrong with your scipy installation (or python installation?) Can you try from scipy.sparse.linalg.interface import aslinearoperator and import dis Btw, where did you get these installation instructions from? The Readme? Best, Andy On 07/

[scikit-learn] error from import sklearn

2016-07-28 Thread Lifan Xu
Hi guys, I am sorry to bother you. But I have a question about using scikit-learn in ubuntu. I installed scikit using: sudo apt-get install build-essential python-dev python-numpy python-numpy-dev python-scipy libatlas-dev g++ python-matplotlib ipython sudo pip install -U sciki