머신러닝
-
[필사] Bike Sharing Demand머신러닝/캐글 2021. 11. 8. 16:29
# 코드 1 import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns import os from scipy import stats import missingno as msno plt.style.use('seaborn') import warnings warnings.filterwarnings("ignore") mpl.rcParams['axes.unicode_minus'] = False %matplotlib inline 코드 설명 mpl.rcParams['axes.unicode_minus'] = False -> 그래프에서 마이너스 폰트가 깨지는 문제 대처 ..
-
[필사] Costa Rican Household Poverty Level Prediction머신러닝/캐글 2021. 10. 31. 23:00
# 코드 1 import numpy as np # linear algebra import pandas as pd import matplotlib import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline import lightgbm as lgb import xgboost as xgb from sklearn.metrics import f1_score from joblib import Parallel, delayed from sklearn.base import clone from sklearn.ensemble import VotingClassifier, ExtraTreesClassifier, RandomForestClassifier fr..
-
[필사 실패] Home Credit Default Risk머신러닝/캐글 2021. 10. 31. 21:23
실패 이유 : XGBoost 가 메모리 사용?이 많아서 그런지 오래걸림 나중에 도전해보기 Home Credit Default Risk 참고자료 : https://www.kaggle.com/eliotbarr/stacking-test-sklearn-xgboost-catboost-lightgbm ---------------------------------------------------------------- from sklearn.cross_validation import KFold 을 from sklearn.model_selection import KFold 으로 바꿔서 입력 XGBoost 파라미터 silent 관련 오류가 나면, xgb.set_config(verbosity=0) 코드 입력 참고자료 : h..
-
[필사] Porto Seguro Exploratory Analysis and Prediction - 아직 완성 못함머신러닝/캐글 2021. 10. 31. 15:33
Analysis packages # 코드 1 import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn.utils import shuffle from sklearn.preprocessing import Imputer from sklearn.preprocessing import PolynomialFeatures from sklearn.preprocessing import StandardScaler from sklearn.feature_selection import VarianceThreshold from sklearn.feature_selection import SelectFr..
-
Porto Seguro’s Safe Driver Prediction머신러닝/캐글 2021. 10. 30. 22:09
참고 자료 : https://hmkim312.github.io/posts/Data_Preparation_and_Exploration/ Porto Seguro’s Safe Driver Prediction 데이터 Preparation & Exploration 1. Porto Seguro Safe Driver Prediction 1.1 Porto Seguro Safe Driver Prediction Porto Seguro는 브라질의 자동차 보험회사로, 어떤 차주가 내년에 보험을 청구할지에 대한 예측을 하는것 https://www.kaggle.com/c/porto-seguro-saf hmkim312.github.io https://www.kaggle.com/sihwanyoon/data-preparation-ex..