titanic-analysis_1.html titanic-analysis_1.ipynb titanic-data.csv README 项目概述 在本项目中,将会分析 泰坦尼克号数据集,将会使用 Python 库 NumPy、Pandas 和 Matplotlib 。 本项目效果展示 http://lilyalove.com/titanic_data_analysis/titanic
join(os.listdir('../A Data Science Framework'))) # Any results you write to the current directory are saved as output Python version: 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] pandas version: 0.25.1 matplotlib version: 3.1.0 NumPy version: 1.16.5 ...
Python实现相关系数特别简单,搭配seaborn 就有了下面这张热力图 """通过画图进行特征选择"""sns.heatmap(df_data.corr(),linewidths=0.1,vmax=1.0,square=True,cmap=sns.color_palette('RdBu',n_colors=256),linecolor='white',annot=True)plt.title('the features of corr')plt.show() ...
2.Split Training and Testing Data train1_x, test1_x, train1_y, test1_y = model_selection.train_test_split(data1[data1_x_calc], data1[Target], random_state = 0) 3.Perform Exploratory Analysis with Statistics for x in data1_x: if data1[x].dtype != 'float64' : print('Survival...
Exploratory Data Analysis)。 label分布情况 代码语言:javascript 代码运行次数:0 运行 AI代码解释 %matplotlib inline%config InlineBackend.figure_format='png'ax=dftrain_raw['Survived'].value_counts().plot(kind='bar',figsize=(,),fontsize=,rot=)ax.set_ylabel('Counts',fontsize=)ax.set_xlabel('Surv...
Notebooks support scripts in Python and R, Jupyter Notebooks, and RMarkdown reports. You can visit the Notebooks tab to view all of the publicly shared code for the Titanic competition. For more on how to use Notebooks to learn data science, check out our Courses! Why did my team ...
可以使用Keras方式保存模型,也可以使用TensorFlow原生方式保存。前者仅仅适合使用Python环境恢复模型,后者则可以跨平台进行模型部署。 推荐使用后一种方式进行保存。 1,Keras方式保存 # 保存模型结构及权重model.save('./data/keras_model.h5')del model #删除现有模型# identical to the previous onemodel = models....
Mustafa Oğuzhan EKEN·9mo ago· 64 views arrow_drop_up1 Copy & Edit 1 more_vert historyVersion 3 of 3 Runtime play_arrow 33s Input COMPETITIONS Titanic - Machine Learning from Disaster Language Competition Notebook Titanic - Machine Learning from Disaster...
Python Table of Contents Titanic Data Visualition License This Notebook has been released under the Apache 2.0 open source license. Continue exploring Input1 file arrow_right_alt Output0 files arrow_right_alt Logs19.8 second run - successful arrow_right_alt Comments1 comment arrow_right_alt...
” 您可以使用乘客数据(即姓名,年龄,性别,社会经济舱等)来进行预测 开发环境 操作系统:Macos Python版本:3.7.4 Anaconda版本:4.9.2 tensorflow版本:2.1.0 keras版本:1.1.0 1 数据源集数据处理 1.1 数据源 数据集来自Kaggle网站提供的数据集,Kaggle提供的乘员数据分为两个部分: 训练集(train.csv) 测试集(test....