def read_data_table_test(test_tables):
test = pd.read_csv('../input/sample_submission.csv')[['image_name']]
i = 0
for t_path in test_tables:
data = pd.read_csv(t_path)
data.rename(columns={'Type_1': 'Type_1_num_{}'.format(i),
'Type_2': 'Type_2_num_{}'.format(i),
'Type_3': 'Type_3_num_{}'.format(i),
}, inplace=True)
test = pd.merge(test, data, how='left', on='image_name', left_index=True)
i += 1
'''
resolutions = pd.read_csv("../modified_data/resolutions_and_color_features_1.csv")
resolutions = resolutions[resolutions['type'] == 'test']
resolutions.drop(['type'], axis=1, inplace=True)
test = pd.merge(test, resolutions, how='left', on='image_name', left_index=True)
'''
return test
a40_run_xgboost_blender.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录