cvtpkl2csv.py 文件源码

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

项目:CIKM2017 作者: heliarmk 项目源码 文件源码
def cvt(filename):
    output = joblib.load(filename)
    pred = output["output"]
    outputdir = filename[:filename.rfind("/")+1] + "csvfile/"
    if not os.path.isdir(outputdir):
        os.mkdir(outputdir)
    csvfile = outputdir + filename[filename.rfind("/"):filename.rfind(".")+1] + "csv"
    out = np.array(pred).reshape(2000)
    np.savetxt(fname=csvfile, X=out, fmt="%.3f",delimiter="")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号