Skip to content

Instantly share code, notes, and snippets.

@kingabzpro
Last active October 14, 2022 09:27
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 kingabzpro/bac4a3062afc2b7ac26b5aa21af8b19c to your computer and use it in GitHub Desktop.
Save kingabzpro/bac4a3062afc2b7ac26b5aa21af8b19c to your computer and use it in GitHub Desktop.
Ensemble Learning with examples
# Utility
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.metrics import roc_auc_score,accuracy_score
from sklearn.preprocessing import StandardScaler
# machine learning
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LogisticRegression, SGDClassifier
#seed
seed = 40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment