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第三方库


热门话题
使用jaxb2annotateplugin和XJC工具的java自定义注释   java组织。xeustechnologies。jcl无法加载WstxInputFactory类   java JUnit在格式化字符串上比较失败   java Bukkit配置部分getKeys   如何关闭Java流?   java Struts2正则表达式配置   链式事务注释的java奇怪行为   java在两个JButton之间使用变量   java签署APK时内容会发生什么变化?   java LWJGL:Slick:3D世界中的绘图字体   如何分解Java数组?   在Java MySql中处理多个过滤器   java如何在Firebase数据库中跳过初始OnChildaded事件触发   java如何在PreviewView中使用CameraX?   在子类#中重写父类后访问父类原始方法的java已解决   java找不到类型的属性   游戏框架游戏!框架+Java