SHARE
TWEET

Untitled

a guest Oct 21st, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Store results and model in respective dictionaries/dataframes
  2. GSCV_Results.loc['LogisticRegr.',:]=cv_scores_50.loc['Mean_Values',:]
  3. results_dictionary['LogisticRegr.']=cv_scores_50
  4. models_dictionary['LogisticRegr.']=best_logreg
  5.  
  6. # Save in Excel:
  7. filename='excel_files/Logreg_results.csv'
  8. cv_scores_50.to_csv(filename)
  9.  
  10. # Save Model as joblib
  11. filename = 'results_files/best_logreg.sav'
  12. joblib.dump(best_logreg, filename);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top