classification_classifier_chain.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:Kaggle_the_Nature_Conservancy_Fisheries_Monitoring 作者: Sapphirine 项目源码 文件源码
def binary_trans(trainy, testy, i):
    y1 = trainy['image_path'].apply(lambda x: 1 if x == int(i) else 0).tolist()
    y2 = testy['image_path'].apply(lambda x: 1 if x == int(i) else 0).tolist()
    return(y1, y2)


# <=======================================================================================================>
# load the data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号