tools.py 文件源码

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

项目:AutoSleepScorerDev 作者: skjerns 项目源码 文件源码
def epoch_voting(Y, chunk_size):

    Y_new = Y.copy()

    for i in range(1+len(Y_new)/chunk_size):
        epoch = Y_new[i*chunk_size:(i+1)*chunk_size]
        if len(epoch) != 0: winner = np.bincount(epoch).argmax()
        Y_new[i*chunk_size:(i+1)*chunk_size] = winner              
    return Y_new
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号