mixture_of_experts.py 文件源码

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

项目:pyflux 作者: RJT1990 项目源码 文件源码
def squared_loss(data, predictions):
        """ Calculates squared loss

        Parameters
        ----------
        data : np.ndarray
            Univariate data

        predictions : np.ndarray
            Univariate predictions

        Returns
        ----------
        - np.ndarray of the squared loss
        """
        return np.square(data-predictions)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号