This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import os | |
import uuid | |
from functools import ( | |
partial, | |
) | |
from typing import ( | |
List, | |
Optional, | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lightgbm as lgb | |
import mlflow | |
import optuna | |
from optuna.integration import LightGBMPruningCallback | |
from datetime import datetime | |
from sklearn.metrics import roc_auc_score, log_loss | |
from sklearn.datasets import load_breast_cancer | |
from sklearn.model_selection import train_test_split |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import lightgbm as lgb | |
import optuna | |
from optuna.integration import LightGBMPruningCallback | |
from sklearn.metrics import log_loss, roc_auc_score | |
def get_features_labels(df, target_columns): | |
""" | |
Splits the dataframe into features and labels |