简体   繁体   English

在R和python中运行Keras

[英]Running Keras in R and python

I am intrigued by the keras package, which allows running the well known deep learning library from within R. The benefits of running keras (and tensor flow and theano) without leaving R are obvious. 我对keras软件包很感兴趣,它允许在R内部运行著名的深度学习库。运行keras(以及张量流和theano)而无需离开R的好处是显而易见的。

What I am unsure of is whether there is a possibility to share the intermediate result - ie a trained neural network - with colleagues on python workflow. 我不确定的是是否有可能与python工作流程的同事共享中间结果(即经过训练的神经网络)。

You could just save your model (architecture + weights + optimizer state) keras_save . 您可以只保存模型(架构+权重+优化器状态) keras_save And then your colleagues could load it from python . 然后您的同事可以从python加载它。 More information here . 更多信息在这里
Also, @Jindra Lacko noted, that keras_save is from kerasR - a different package than keras . 另外,@ Jindra Lacko指出, keras_save来自kerasRkeras不同的软件包。 Better solution - save_model_hdf5 function. 更好的解决方案save_model_hdf5函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM