AI/Statistics
2021. 9. 6.
[통계] logistic regression 예제 - 타이타닉 데이터셋
타이타닉 데이터 with logistic regression¶ 데이터 출처: https://www.kaggle.com/c/titanic/overview In [1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression from sklearn.metrics import classification_report In [2]: train = pd.read_csv('titan..