kernels.py 文件源码

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

项目:MKLMM 作者: omerwe 项目源码 文件源码
def getTrainKernel(self, params):
        self.checkParams(params)
        if (self.sameParams(params)): return self.cache['getTrainKernel']               
        ell2 = np.exp(2*params[0])

        sqrt_ell2PSx = np.sqrt(ell2+self.sx)
        K = self.S / np.outer(sqrt_ell2PSx, sqrt_ell2PSx)
        self.cache['K'] = K
        K_arcsin = np.arcsin(K)

        self.cache['getTrainKernel'] = K_arcsin
        self.saveParams(params)
        return K_arcsin
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号