Graph Keras训练历史对象

keras-hist-graph的Python项目详细描述


Keras历史图表

使用matplotlib生成历史对象的简单图形。特别适用于jupyter

它将显示对于训练数据验证数据精度损失。 它还将打印在训练期间达到的最大^ {EM1} $验证精度

Example output

安装

pip install keras-hist-graph

用法

需要keras

fromkeras_hist_graphimportplot_historyhistory=model.fit(x,y,...)plot_history(history)

参数

plot_history现在接受这些参数中的任何一个(以任何顺序)

argumentdefaultpossibledetails
fig_size(10, 6)(^{}, ^{})Indicates width and height of the resulting graph
min_accuracy0.5^{}Minimum accuracy to graph (often we don't care if acuracy is below 50%)
smooth_factor0.75^{}Zero to one, inclusive. Smooths out the curves by averaging previous points. Consider makeing smaller if number of epochs is small.
start_epoch5integer >= 0Plot the history starting at this epoch. Useful since the first epochs can have very high loss that makes the later loss hard to analyze visually
xkcdTrue^{} ^{}Whether to render in the XKCD style. You might need to render twice for all properties to update if you change the boolean after using the method before

示例:

plot_history(history,fig_size=(11,8.5),min_accuracy=0.8,start_epoch=2,smooth_factor=0.1)

注释

Why use the XKCD style?

这是一个沟通底层数据不精确性的好方法!

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

推荐PyPI第三方库


热门话题
java为什么加载个人密钥库需要这么多时间?   当我使用main创建Android应用程序UI时,如何通过java修改它。xml文件?   java Tomcat 6和7:WebappClassLoader:尝试为名称org/apache/openjpa/persistence/osgi/BundleUtils复制类定义   java`parseInt()`和`parseDouble()`throw`NumberFormatExeption`   JavaSpringMongoDB填充引用   在LinuxMint中打开Eclipse时发生java错误;OpenJDK 64位服务器VM警告:忽略选项MaxPermSize=512m;支持在8.0中被删除   使用PKCS7Padding的AES CBC加密在Java和Objective中有不同的结果   java为什么Jackson要用一个以类命名的额外层来包装我的对象?   json在Java中使用parallelStream提取值   JavaSpring存储库自动生成方法:按给定的顶部编号+按字段描述排序选择   java是否有可序列化的标准闭包接口?   .NET与Java在初创公司的web应用程序开发   如何修复java。java中的lang.unsatifiedLinkError   JavaFX+Spring Boot+Hibernate应用程序对多个环境的java支持   自定义视图组中的java更改未呈现