title: name 'classification_model' is not defined
body: <p>Im trying to model in Python 3.5 and am following an example that can be found at <a href="https://www.analyticsvidhya.com/blog/2016/01/complete-tutorial-learn-data-science-python-scratch-2/" rel="nofollow">here</a>.</p>
  
  <p>I have imported all the required libraries from sklearn.</p>
  
  <p>However I'm getting the following error.</p>
  
  <p>Code:</p>
  
  <pre><code>  from sklearn.linear_model import LogisticRegression
    from sklearn.cross_validation import KFold   #For K-fold cross validation
    from sklearn.ensemble import RandomForestClassifier
    from sklearn.tree import DecisionTreeClassifier, export_graphviz
    from sklearn import metrics
  
   outcome_var = 'Loan_Status'
   model = LogisticRegression()
   predictor_var = ['Credit_History']
   classification_model(model, loan,predictor_var,outcome_var)
  </code></pre>
  
  <p>When I run the above code I get the following error:
       <strong>NameError: name 'classification_model' is not defined</strong></p>
  
  <p>I'm not sure how to resolve this as I tried importing sklearn and all the sub libraries.</p>
  
  <p>P.S. I'm new to Python, hence I'm trying to figure out basic steps</p>