Re: [scikit-learn] Inconsistent Logistic Regression fit results

2016-08-16 Thread Chris Cameron
y_train) > > and > >> predicted = log_reg_fit.predict(df_test.values) > > and so forth. > > > > > >> On Aug 15, 2016, at 6:00 PM, Chris Cameron wrote: >> >> Sebastian, >> >> That doesn’t do it. With the function: >>

Re: [scikit-learn] Inconsistent Logistic Regression fit results

2016-08-15 Thread Chris Cameron
a specific, contant integer value? Note that > the default in LogisticRegression is random_state=None. Setting it to some > arbitrary number like 123 may help if you haven’t done so, yet. > > Best, > Sebastian > > > >> On Aug 15, 2016, at

[scikit-learn] Inconsistent Logistic Regression fit results

2016-08-15 Thread Chris Cameron
Hi all, Using the same X and y values sklearn.linear_model.LogisticRegression.fit() is providing me with inconsistent results. The documentation for sklearn.linear_model.LogisticRegression states that "It is thus not uncommon, to have slightly different results for the same input data.” I am e