Keras报错:TypeError: (‘Keyword argument not understood:‘, ‘offset‘)

简介: Keras报错:TypeError: (‘Keyword argument not understood:‘, ‘offset‘)

今天在加载keras模型的时候,报错如下:



网上查了很多该错误,都没有对应的方法。


于是自己看了一下报错对应的keras源码,发现这个错其实是目前的环境无法加载keras模型,即环境有问题


解决办法:

将notebook上跑通模型的那版环境通过zip进行打包,然后上传到HDFS上,在模型加载的时候,导入这个zip包即可,亲身实践已解决。


如果解决了你的问题,还请帮忙点个赞哦~


相关文章
|
3月前
|
机器学习/深度学习 Python
【Python】已解决TypeError: init() got an unexpected keyword argument ‘threshold’
【Python】已解决TypeError: init() got an unexpected keyword argument ‘threshold’
63 0
|
3月前
|
开发者 Python
【Python】已解决:SyntaxError: positional argument follows keyword argument
【Python】已解决:SyntaxError: positional argument follows keyword argument
60 0
|
3月前
|
Python
【Python】已解决:TypeError: *init*() missing 1 required positional argument: ‘scheme’
【Python】已解决:TypeError: *init*() missing 1 required positional argument: ‘scheme’
160 0
成功解决TypeError: ‘encoding’ is an invalid keyword argument for this function
成功解决TypeError: ‘encoding’ is an invalid keyword argument for this function
TypeError: custom() got an unexpected keyword argument ‘path‘
TypeError: custom() got an unexpected keyword argument ‘path‘
142 0
|
计算机视觉
成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations'
成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations'
成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'
成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'
|
TensorFlow 算法框架/工具
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
260 0
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
|
机器学习/深度学习 PyTorch 算法框架/工具
解决Pytorch中RuntimeError: expected scalar type Double but found Float
解决Pytorch中RuntimeError: expected scalar type Double but found Float
2636 0
python TypeError: missing 1 required positional argument:'self'
python TypeError: missing 1 required positional argument:'self'
python TypeError: missing 1 required positional argument:'self'