mi.py 文件源码

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

项目:mifs 作者: danielhomola 项目源码 文件源码
def get_first_mi_vector(MI_FS, k):
    """
    Calculates the Mututal Information between each feature in X and y.

    This function is for when |S| = 0. We select the first feautre in S.
    """
    n, p = MI_FS.X.shape
    MIs = Parallel(n_jobs=MI_FS.n_jobs)(delayed(_get_first_mi)(i, k, MI_FS)
                                        for i in xrange(p))
    return MIs
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号