net.py 文件源码

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

项目:Vulcan 作者: rfratila 项目源码 文件源码
def forward_pass(self, input_data, convert_to_class=False):
        """
        Allow the implementer to quickly get outputs from the network.

        Args:
            input_data: Numpy matrix to make the predictions on
            convert_to_class: If true, output the class
                             with highest probability

        Returns: Numpy matrix with the output probabilities
                 with each class unless otherwise specified.
        """
        if convert_to_class:
            return get_class(self.output(input_data))
        else:
            return self.output(input_data)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号