cross validation import libraries
import numpy as np import pandas as pd from numpy import array from sklearn.model_selection import cross_val_score from sklearn.model_selection import cross_validate from sklearn.model_selection import KFold from sklearn.model_selection import RepeatedKFold from sklearn.model_selection import LeaveOneOut from sklearn.model_selection import LeavePOut from sklearn.model_selection import StratifiedKFold from sklearn.model_selection import GroupKFold from sklearn.model_selection import StratifiedGroupKFold from sklearn.model_selection import TimeSeriesSplit from sklearn.ensemble import RandomForestClassifier import warnings warnings.filterwarnings('ignore')