Extend tf.keras.Model.evaluate
with class_weight
#35825
Labels
comp:keras
Keras related issues
stat:awaiting tensorflower
Status - Awaiting response from tensorflower
TF 2.0
Issues relating to TensorFlow 2.0
type:feature
Feature requests
System information
TF 2.0.0
Yes
Describe the feature and the current behaviour/state.
Currently
tf.keras.models.Model.fit
method allows the user to pass either 'sample_weight' and 'class_weight' parameters. These are used to compute at some point a standardised 'sample_weights' and used later on while calculating the loss.This feature request is about extending the 'tf.keras.Model.evaluate' API so that is permits using
class_weight
directly. Theevaluate
function already permits forsample_weight
.Will this change the current api? How?
current API
new API
Who will benefit with this feature?
Those users of the API who would like to perform the evaluation of a model that was trained with bespoke class weights.
Any Other info.
The text was updated successfully, but these errors were encountered: