[scikit-learn] Custom Logging - GridSearchCV

2023-08-01 Thread Andrew Howe
Hi all. Is there a way to pass a logging.logger object to the GridSearchCV function? I've got one setup for all my modeling, but it can't catch the GSC output. Thanks. Andrew <~~~~~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ah

Re: [scikit-learn] 2 million samples dataset caused python and OS crash

2021-01-08 Thread Andrew Howe
500 thousand rows (with 50 columns), the crash > will happened with same error message -- kernel page error. > > Guillaume Lemaître 于2021年1月6日周三 下午10:33写道: > >> And it seems that the piece of traceback refer to NumPy. >> >> On Wed, 6 Jan 2021 at 12:48, Andrew Howe wrote: >

Re: [scikit-learn] 2 million samples dataset caused python and OS crash

2021-01-06 Thread Andrew Howe
yond the memory capacity. Perhaps the full stack trace would be helpful. Andrew <~~~~~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contrib

Re: [scikit-learn] Drawing contours in KMeans

2020-12-09 Thread Andrew Howe
ng] Andrew <~~~~~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contributor ID (ORCID) <http://orcid.org/-0002-3553-1990> Github Profile <http:/

Re: [scikit-learn] Drawing contours in KMeans

2020-12-09 Thread Andrew Howe
Contours generally indicate a third variable - often a probability density. Kmeans doesn't provide density estimates, so what precisely would you want the contours to represent? Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.

Re: [scikit-learn] Fwd: StackingClassifier

2020-05-05 Thread Andrew Howe
Great - thanks! Yes, it would be very nice to have feature names automatically propagate throughout sklearn. Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/Joh

[scikit-learn] Fwd: StackingClassifier

2020-05-05 Thread Andrew Howe
Hi All - gentle nudge in case anybody has an idea about this. Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contributo

[scikit-learn] StackingClassifier

2020-04-30 Thread Andrew Howe
ure labels for plot_tree. Thanks! Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contributor ID (ORCID) <http://orcid.org/-0002-3553-1990>

Re: [scikit-learn] ANN: DIPY 1.1.1 - a powerful release

2020-01-22 Thread Andrew Howe
I was unaware of this package, and had to look it up. It's my opinion that his package is only relevant to a likely small subset of users engaged in computational neuroanatomy. I am not sure updates really belong on this list... Andrew <~~~> J. Andrew Howe, P

Re: [scikit-learn] Version 0.21! and plot_tree!

2019-12-05 Thread Andrew Howe
deleting the arg. Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contributor ID (ORCID) <http://orcid.org/-0002-3553-1

Re: [scikit-learn] ANN: scikit-learn 0.22 final release

2019-12-04 Thread Andrew Howe
or at least few) backwards-compatibility issues. just my 2 cents. Andrew <~~~~~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contributor ID (O

Re: [scikit-learn] Version 0.21! and plot_tree!

2019-12-04 Thread Andrew Howe
ther class leaf / branch nodes could be shrunk to save space Also, I have noted on ver 0.21.3 that the rotate argument does not seem to be working in either jupyter lab or ipython, though this seems like a known issue. Andrew <~~~~~~~> J. Andrew Howe, PhD L

Re: [scikit-learn] Vote on SLEP010: n_features_in_ attribute

2019-12-04 Thread Andrew Howe
Perhaps because some skl objects have R *n_features_in*, but then S *n_features_out*, where S!=R. Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/&g

Re: [scikit-learn] ANN: scikit-learn 0.22 final release

2019-12-04 Thread Andrew Howe
~~~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contributor ID (ORCID) <http://orcid.org/-0002-3553-1990> Github Profile <http://github.com

Re: [scikit-learn] Vote on SLEP010: n_features_in_ attribute

2019-12-04 Thread Andrew Howe
Excellent idea. <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contributor ID (ORCID) <http://orcid.org/-0002-3553-1990&

Re: [scikit-learn] Vote on SLEP009: keyword only arguments

2019-09-11 Thread Andrew Howe
I'm strongly supportive of moving to keyword only arguments. Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contr

Re: [scikit-learn] LogisticRegression

2019-06-11 Thread Andrew Howe
The coef_ attribute of the LogisticRegression object stores the parameters. Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher

[scikit-learn] Version 0.21! and plot_tree!

2019-05-23 Thread Andrew Howe
could view the tree.export_graphviz results. Having this new function to plot the trees natively in matplotlib is extremely useful. Thanks again! Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate P

Re: [scikit-learn] API Discussion: Where shall we put the plotting functions?

2019-04-07 Thread Andrew Howe
n doing my own plotting in plotly for the last month, and can't imagine going back to static matplotlib plots... Andrew <~~~~~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.

Re: [scikit-learn] API Discussion: Where shall we put the plotting functions?

2019-04-03 Thread Andrew Howe
My preference would be for (1). I don't think the sub-namespace in (2) is necessary, and don't like (3), as I would prefer the plotting functions to be all in the same namespace sklearn.plot. Andrew <~~~~~~~> J. Andrew Howe, PhD LinkedIn Profile <http://

Re: [scikit-learn] I’m in trouble and I need your advice on operating scikit-learn

2018-03-28 Thread Andrew Howe
rsonally use Google's TensorFlow. Hope this helps. Andrew <~~~> J. Andrew Howe, PhD LinkedIn Profile <http://www.linkedin.com/in/ahowe42> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/> Open Researcher and Contribut

Re: [scikit-learn] Pipegraph is on its way!

2018-02-07 Thread Andrew Howe
Very cool! Thanks for all the great work. Andrew <~~~> J. Andrew Howe, PhD www.andrewhowe.com http://orcid.org/-0002-3553-1990 http://www.linkedin.com/in/ahowe42 https://www.researchgate.net/profile/John_Howe12/ I live to learn, so I can learn to live

Re: [scikit-learn] decision trees

2017-03-29 Thread Andrew Howe
Thanks very much for the thorough answer. I didn't think about the inductive bias issue with my forests. I'll evaluate both set of coding for my unordered categoricals. Andrew <~~~~~~~> J. Andrew Howe, PhD www.andrewhowe.com http://www.linkedin.com/

Re: [scikit-learn] decision trees

2017-03-29 Thread Andrew Howe
My question is more along the lines of will the DT classifier falsely infer an ordering? <~~~> J. Andrew Howe, PhD www.andrewhowe.com http://www.linkedin.com/in/ahowe42 https://www.researchgate.net/profile/John_Howe12/ I live to learn, so I can learn to live

[scikit-learn] decision trees

2017-03-29 Thread Andrew Howe
Is one-hot encoding still the most accurate way to pass categorical variables to decision trees in scikit-learn (i.e. without causing spurious ordering/interpolation)? Thanks. Andrew <~~~> J. Andrew Howe, PhD www.andrewhowe.com http://www.linkedin.com/in/ahowe42

Re: [scikit-learn] MAPE in scikit-learn?

2017-03-03 Thread Andrew Howe
I would think so. I've used it in research before. Andrew <~~~> J. Andrew Howe, PhD www.andrewhowe.com http://www.linkedin.com/in/ahowe42 https://www.researchgate.net/profile/John_Howe12/ I live to learn, so I can learn to live. - me <~~

Re: [scikit-learn] Preparing a scikit-learn 0.18.2 bugfix release

2017-02-08 Thread Andrew Howe
How many current deprecations are expected in the next release? Andrew On Jan 12, 2017 00:53, "Gael Varoquaux" wrote: On Thu, Jan 12, 2017 at 08:41:51AM +1100, Joel Nothman wrote: > When the two versions deprecation policy was instituted, releases were much > more frequent... Is that enough of

Re: [scikit-learn] Calculate p-value, the measure of statistical significance, in scikit-learn

2017-02-04 Thread Andrew Howe
<~~~> J. Andrew Howe, PhD www.andrewhowe.com http://www.linkedin.com/in/ahowe42 https://www.researchgate.net/profile/John_Howe12/ I live to learn, so I can learn to live. - me <~~~> On Sat, Feb 4, 2017 at 10:52 PM, Nelle Varoquaux wro

Re: [scikit-learn] Calculate p-value, the measure of statistical significance, in scikit-learn

2017-02-04 Thread Andrew Howe
I'm fairly certain that the scikit-learn regression result, plus what you already have about the data is enough for you to compute all those statistical measures yourself. It should be rather trivial to do so. Andrew On Feb 4, 2017 00:34, "Afarin Famili" wrote: > Hi all, > > I am aiming at cal

Re: [scikit-learn] Query Regarding Model Scoring using scikit learn's joblib library

2016-12-26 Thread Andrew Howe
. What is the total classification result in both training & testing (not just TPs)? Andrew <~~~~~~~> J. Andrew Howe, PhD www.andrewhowe.com http://www.linkedin.com/in/ahowe42 https://www.researchgate.net/profile/John_Howe12/ I live to learn

Re: [scikit-learn] How do we define a distance metric's parameter for grid search

2016-06-27 Thread Andrew Howe
Yeah I know :-). I did it like that for a specific reason which I no longer remember :-D. But, you know, it was probably a good one...hahaha Andrew <~~~> J. Andrew Howe, PhD Editor-in-Chief, European Journal of Mathematical Sciences Executive Editor, European Jour

Re: [scikit-learn] How do we define a distance metric's parameter for grid search

2016-06-27 Thread Andrew Howe
tions as needed: [image: Inline image 1] Hence, even though my list of dicts includes all three parameters for all types of kernels I used, they were selectively ignored. I'm not sure about parameters for the distance metrics for the KNN object, but it's a good bet it works the same way. And

Re: [scikit-learn] Fwd: ValueError

2016-06-01 Thread Andrew Howe
I also strongly recommend the Anaconda distribution. Andrew <~~~> J. Andrew Howe, PhD Editor-in-Chief, European Journal of Mathematical Sciences Executive Editor, European Journal of Pure and Applied Mathematics www.andrewhowe.com http://www.linkedin.com/in/ahowe42

Re: [scikit-learn] Artificial neural network not learning lower values of the training sample

2016-06-01 Thread Andrew Howe
What about adding a simple binary night / day flag? While it's less information than hour, it will provide a distinct cutoff for the network to use. Andrew <~~~> J. Andrew Howe, PhD Editor-in-Chief, European Journal of Mathematical Sciences Executive Edito