calculate_accuracy_t.py 文件源码

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

项目:piecewisecrf 作者: Vaan5 项目源码 文件源码
def load_data(predictions_file, labels_file):
    '''

    Loads prediction and label data into numpy arrays

    Parameters
    ----------
    predictions_file: str
        Path to the prediction file

    labels_file: str
        Path to the label file

    Returns
    -------
    ret_val: tuple
        labels array, predictions array


    '''
    labels = io.load_nparray_from_bin_file(labels_file, np.uint8)
    predictions = io.load_nparray_from_bin_file(predictions_file, np.int16)

    return labels, predictions
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号