<html><head></head><body><div class="yahoo-style-wrap" style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div dir="ltr" data-setdir="false">I have a case with binary results and 1-D features, like:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">   <font face='"courier new", courier, monaco, monospace, sans-serif'> X = np.array(-3,-2,-1,0,1,2,3,)</font></div><div dir="ltr" data-setdir="false"><font face='"courier new", courier, monaco, monospace, sans-serif'></font><br></div><div dir="ltr" data-setdir="false">and</div><div dir="ltr" data-setdir="false"><font face='"courier new", courier, monaco, monospace, sans-serif'></font><br></div><div dir="ltr" data-setdir="false"><font face='"courier new", courier, monaco, monospace, sans-serif'>    y = np.array(0, 0, 0, 1, 1, 1, 1)</font></div><div dir="ltr" data-setdir="false"><font face='"courier new", courier, monaco, monospace, sans-serif'></font><br></div><div dir="ltr" data-setdir="false">only longer arrays (about 180 entries in each array) of this general type. <br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">So this should be the "simplest" case.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Altho I've tried several variations of the Logistic input formats, in</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">   <font face='"courier new", courier, monaco, monospace, sans-serif'>LogisticRegression.fit(X, y)</font></div><div dir="ltr" data-setdir="false"><font face='"courier new", courier, monaco, monospace, sans-serif'></font><br></div><div dir="ltr" data-setdir="false">they keep being rejected with the most common error message being</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><font face='"courier new", courier, monaco, monospace, sans-serif'>   Missing argument y</font></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><font face='"bookman old style", "new york", times, serif'>I assure you I do indeed have an array "y" that is passed to "<font face='"courier new", courier, monaco, monospace, sans-serif'>fit</font>"</font></div><div dir="ltr" data-setdir="false"><font face='"bookman old style", "new york", times, serif'></font><br></div><div dir="ltr" data-setdir="false">So----What do I have to do to get Logistic Regression to accept 1-D features?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div></div></body></html>