Skip to content

Instantly share code, notes, and snippets.

@Davisy
Created September 16, 2020 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Davisy/1c93c25dbdc77c95dd6b347e4a22e34b to your computer and use it in GitHub Desktop.
Save Davisy/1c93c25dbdc77c95dd6b347e4a22e34b to your computer and use it in GitHub Desktop.
# import packages
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn import metrics
from sklearn.model_selection import cross_val_score
from sklearn.preprocessing import StandardScaler
from hyperopt import tpe, hp, fmin, STATUS_OK,Trials
from hyperopt.pyll.base import scope
import warnings
warnings.filterwarnings("ignore")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment