Keras “如何修复”;fit_generator()获取了意外的关键字参数';验证频率'&引用;
我更新了pip和keras库,但这似乎发生了。我查看了Keras文档,验证频率似乎不起作用。有什么办法吗Keras “如何修复”;fit_generator()获取了意外的关键字参数';验证频率'&引用;,keras,Keras,我更新了pip和keras库,但这似乎发生了。我查看了Keras文档,验证频率似乎不起作用。有什么办法吗 model.fit_generator(generator=train_generator, steps_per_epoch=steps_per_epoch, epochs=epochs, callbacks
model.fit_generator(generator=train_generator,
steps_per_epoch=steps_per_epoch,
epochs=epochs,
callbacks=[model_checkpoint, tensorboard_callback],
validation_data=validation_generator,
validation_steps=validation_steps,
validation_freq=[1, 2, 10])
回溯(最近一次呼叫最后一次):
文件“scripts/run_training.py”,第54行,在
验证频率=[1,2,10])
文件“/home/sherwin/.local/lib/python3.6/site packages/keras/legacy/interfaces.py”,第91行,在包装器中
返回函数(*args,**kwargs)
TypeError:fit_generator()得到一个意外的关键字参数“validation_freq”请尝试按照文档中的说明从源代码安装keras。还可以使用“conda uninstall keras”和“pip uninstall keras”卸载其他conda和pip版本的keras 首先,使用git克隆Keras: git克隆 然后,将cd刻录到Keras文件夹并运行install命令: 镉干酪
sudo python setup.py install尝试按照文档中所述从源代码安装keras。还可以使用“conda uninstall keras”和“pip uninstall keras”卸载其他conda和pip版本的keras 首先,使用git克隆Keras: git克隆 然后,将cd刻录到Keras文件夹并运行install命令: 镉干酪
sudo python setup.py install它与卸载keras无关,它只是告诉您键入的参数没有在该函数中使用。有时,当他们更新模块中的函数时,他们会更改某些参数的名称,只是为了使使用旧教程和其他教程中的代码变得困难。尝试查找atribute的功能,并查找您需要的属性的名称。它与卸载keras无关,它只是告诉您键入的参数未在该函数中使用。有时,当他们更新模块中的函数时,他们会更改某些参数的名称,只是为了使使用旧教程和其他教程中的代码变得困难。试着找出阿曲布他有什么作用,并找出你需要的属性名称