global pyPublished by onesixx on 21-06-2621-06-26 Python # -*- coding: utf-8 -*- ### Required libraries ------------------------------------------ import numpy as np import os import pandas as pd from pandas import Series # column 다 보이기 pd.set_option('display.max_columns', None) #(참고) warning 제거를 위한 코드 #np.seterr(divide='ignore', invalid='ignore') ### Visualization libraries ------------------------------------- import seaborn as sns color = sns.color_palette() sns.set_style('darkgrid') import matplotlib.pyplot as plt # % matplotlib inline plt.rcParams["figure.figsize"] = (7,6) # 크기 (inch) plt.rcParams['axes.grid'] = True # 격자선 여부 plt.rcParams['lines.linewidth'] = 2 # 선의 두께 plt.rcParams['lines.color'] = 'red' # 선의 색깔 ### Etc. libraries ---------------------------------------------- import math from datetime import datetime # To access datetime # To print multiple output in a cell -------------------------- from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = 'all' ### ************************************************************* import sklearn Python ### Analysis ---------------------------------------------------- from sklearn.linear_model import LinearRegression lr = LinearRegression() from sklearn.model_selection import train_test_split from sklearn.metrics import roc_auc_score from sklearn.model_selection import GridSearchCV # lightgbm 관련 from lightgbm import LGBMClassifier from lightgbm import plot_importance Categories: Python Basic onesixx Blog Owner Subscribe Notify of new follow-up comments new replies to my comments Label {} [+] Name* Email Δ Label {} [+] Name* Email Δ 0 Comments Inline Feedbacks View all comments