neural_network.py 文件源码

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

项目:Speaker_recognition 作者: Mgajurel 项目源码 文件源码
def get_label(self, output,min_accuracy=0.6):
        counts = np.bincount(output)
        accuracy = (np.amax(counts)/output.shape[0])
        if self.verbose:
            self.message += "\nCounts: %s" %np.array_str(counts)
            self.message += "\nAccuracy: %.2f%%" %(accuracy*100)
        if accuracy < min_accuracy:
            self.message += "\nWho the fuck are you"
        else:
            self.message += "\nThe user is %s" %self.users[np.argmax(counts)]

        return self.message
    # set for delta mode
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号