[scikit-learn] Question RE: skLearn Logistic Regression

2020-10-31 Thread The Helmbolds via scikit-learn
I have a case with binary results and 1-D features, like:     X = np.array(-3,-2,-1,0,1,2,3,) and     y = np.array(0, 0, 0, 1, 1, 1, 1) only longer arrays (about 180 entries in each array) of this general type.  So this should be the "simplest" case. Altho I've tried several variations of the Logi

Re: [scikit-learn] Question RE: skLearn Logistic Regression

2020-10-31 Thread serafim loukas
These are not numpy arrays. Try: X = np.array([-3,-2,-1,0,1,2,3]).reshape(-1,1) And y = np.array([0, 0, 0, 1, 1, 1, 1]).reshape(-1,1) Makis On 31 Oct 2020, at 17:51, The Helmbolds via scikit-learn mailto:[email protected]>> wrote: I have a case with binary results and 1-D features, l