Re: [scikit-learn] How is linear regression in scikit-learn done? Do you need train and test split?

2019-06-05 Thread Andreas Mueller
On 6/4/19 8:44 PM, C W wrote: Thank you all for the replies. I agree that prediction accuracy is great for evaluating black-box ML models. Especially advanced models like neural networks, or not-so-black models like LASSO, because they are NP-hard to solve. Linear regression is not a black

[scikit-learn] Any way to tune threshold of Birch rather than GridSearchCV?

2019-06-05 Thread lampahome
I use Birch to cluster my data and my data is kind of time-series data. I don't know the actually cluster numbers and need to read large data(online learning), so I choose Birch rather than MiniKmeans. When I read it, I found the critical parameters might be branching_factor and threshold, and th

Re: [scikit-learn] How is linear regression in scikit-learn done? Do you need train and test split?

2019-06-05 Thread Matthew Brett
On Wed, Jun 5, 2019 at 8:18 AM Brown J.B. via scikit-learn wrote: > > 2019年6月5日(水) 10:43 Brown J.B. : >> >> Contrast this to Pearson Product Moment Correlation (R), where the fit of >> the line has no requirement to go through the origin of the fit. > > > Not sure what I was thinking when I wrote

Re: [scikit-learn] How is linear regression in scikit-learn done? Do you need train and test split?

2019-06-05 Thread Brown J.B. via scikit-learn
2019年6月5日(水) 10:43 Brown J.B. : > Contrast this to Pearson Product Moment Correlation (R), where the fit of > the line has no requirement to go through the origin of the fit. > Not sure what I was thinking when I wrote that. Pardon the mistake; I'm fully aware that Pearson R is merely a coefficie