上传者: 38594266
|
上传时间: 2021-06-12 16:15:26
|
文件大小: 96KB
|
文件类型: PDF
泰坦尼克数据集下载
训练集
测试集
导入需要的库
import matplotlib.pyplot as plt
%matplotlib inline
import numpy as np
import pandas as pd
加载数据集
train_file = './data/titanic/train.csv'
eval_file = './data/titanic/eval.csv'
train_df = pd.read_csv(train_file)
eval_df = pd.read_csv(eval_file)
print(train_df.head())
print(eva