title: TypeError: 'LogisticRegression' object is not callable in logistic regression
body: <p>I have a problem when I tried to use logistic regression with the idea to determine a t predicted value in the penultimate line. The error is:
  "Traceback (most recent call last):
  line 15, in 
      t_pred = logreg(X_test)
  TypeError: 'LogisticRegression' object is not callable"</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  from sklearn.model_selection import train_test_split
  from sklearn.linear_model import LogisticRegression
  from sklearn.model_selection import cross_val_predict
  from sklearn.metrics import accuracy_score
  df=pd.read_csv('datos.csv')
  X=df1 = df.iloc[:,1:5]
  t=df.iloc[:,0]
  X_train, X_test, t_train, t_test = train_test_split(X, t, test_size=0.2, random_state=0)
  logreg=LogisticRegression(solver='lbfgs')
  predicted = cross_val_predict(logreg, X_train, t_train, cv=10)
  print(accuracy_score(t_train, predicted))
  logreg.fit(X_train, t_train)
  t_pred = logreg(X_test)
  print(accuracy_score(t_test, t_pred))
  </code></pre>