实用程序,用于将数据保存到cvs,作为一个易于读取和使用的tensorboard替代品

dataSaver的Python项目详细描述


数据保存器

实用程序,用于将数据保存到cvs,以便于读取和使用tensorboard的替代品。

用法

fromdataSaverimportDataSaverdataSaver=DataSaver('./somedir/filename/')# creates a file in csv format, where the keys of the dictionary are the column names and the values of the first row are the values associated with each key  dataSaver.add({'ephoch':10,,'iter':200,'learningRate':0.0001,,'loss':10324}# The first call fixes the columns and only the keys that where present the first time add was called will be addeddataSaver.add({'ephoch':10,,'bananass':10324,'iter':200,'learningRate':0.0001,,'loss':10324,'bananass':10324})# collect all data in an internal array dataSaver.cacheArraydataSaver.cache({....})# Save the data collected by cache to file and empty cachedataSaver.dumpCache()

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java语法错误,请插入“;”完成陈述。我怎样才能解决它?   java为什么我会在这里收到类型安全警告?(仿制药)   jQuery的java datepicker插件不会将值发送到Struts 2中的后端   解析时java JSON对象为空   java IntelliJ不会识别从gradle项目导入的一些内容   Android中的java隐藏、显示和聚焦editText   java每个客户端一个线程。可行吗?   sql server 2008 Java更新管理表时出错   Eclipse CDT无头构建C++ java死锁   jboss上的java ear部署   Java编译器或安卓编译器正在截断我的双精度。。。?   java如何使我的if语句在ifelse语句运行时再次运行?   java JMeter,在线程组之间传递值   格式化Java整数金字塔   java如何知道gmail集成安卓应用程序中已登录的用户