cache.py 文件源码

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

项目:FLASH 作者: yuyuz 项目源码 文件源码
def load_step_res(step_fold_identifier):
    file_name_base = hashlib.sha224(step_fold_identifier).hexdigest()
    logger.info("loading [%s] from [%s]", step_fold_identifier, file_name_base)

    with open(file_name_base + ".train", "rb") as f:
        X_train, y_train = load_svmlight_file(f)
        X_train = X_train.toarray()

    with open(file_name_base + ".test", "rb") as f:
        X_test, y_test = load_svmlight_file(f)
        X_test = X_test.toarray()

    return (X_train, y_train, X_test, y_test)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号