ensembler.py 文件源码

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

项目:Kaggle_Allstate 作者: sadz2201 项目源码 文件源码
def mae_loss_func(weights):
    ''' scipy minimize will pass the weights as a numpy array '''
    final_prediction = 0
    for weight, prediction in zip(weights, predictions):
            final_prediction += prediction * weight
    return mean_absolute_error(actual.loss, final_prediction)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号