def evaluate(self,
x=None,
y=None,
batch_size=None,
verbose=1,
sample_weight=None,
steps=None,
callbacks=None,
max_queue_size=10,
workers=1,
use_multiprocessing=False):
“”"
返回损失值和度量值(metrics)
参数说明:
x: Input data. It could be:
- A Numpy array (or array-like), or a list of arrays
(in case the model has multiple inputs).
- A dict mapping input names to the corresponding
array/tensors, if the model has named inputs.
- A generator or keras.utils.Sequence
returning
(inputs, targets)
or (inputs, targets, sample weights)
.
- None (default) if feeding from framework-native
tensors (e.g. TensorFlow data tensors).
y: Target data. Like the input data x
,
it could be either Numpy array(s), framework-native tensor(s),
list of Numpy arrays (if the mod
tensosflow.keras.Sequential 的 evaluate() 函数总结
最新推荐文章于 2023-10-24 16:35:27 发布
![](https://img-home.csdnimg.cn/images/20240709112858.png)