ValueError: Unknown optimizer: adahmg
大佬你好,请问为什么我选择了model.compile(loss='mse',optimizer='adahmg',metrics=['mae'])还是会报错ValueError: Unknown optimizer: adahmg
大佬你好,请问为什么我选择了model.compile(loss='mse',optimizer='adahmg',metrics=['mae'])还是会报错ValueError: Unknown optimizer: adahmg
你好,
你需要把我写好的optimizers.py覆盖了Keras的同名文件。或者你把这个文件里的AdaHMG类单独拿出来写一个py文件和main放在同级目录下,然后from adahmg import AdaHMG,再然后优化器那边直接写成AdaHMG(lr=0.001,...)这样子。
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py\h5f.pyx", line 96, in h5py.h5f.open OSError: Unable to open file (file signature not found) 这是模型权重.h5文件不完整导致的吗?my_model_best_weights.h5是我自己手动在同级目录里面创建的
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py\h5f.pyx", line 96, in h5py.h5f.open OSError: Unable to open file (file signature not found) 这是模型权重.h5文件不完整导致的吗?my_model_best_weights.h5是我自己手动在同级目录里面创建的
你好,
不需要你手动创建.h5文件啊,你弄好目录存放这个文件就行,程序每一个epoch后会自动生成这个文件。如果是环境版本问题,我建议你在Keras 2.1.4下运行。