v0.7.0
[0.7.0][2022-07-07]
A number of changes to make factorized top-K metric computation more accurate
and less prone to user error.
Changed
-
tfrs.layers.embedding.TPUEmbeddingnow supports input features with
dynamic shape.batch_sizeargument is deprecated and no longer required. -
tfrs.layers.embedding.TPUEmbeddingnow supports running on different
versions of TPU. -
Pinned TensorFlow to >= 2.9.0 which works with Scann 1.2.7.
-
tfrs.tasks.Ranking.callnow accepts acompute_batch_metricsargument to
allow switching off batch metric computation. Following this change,
'compute_metrics'argument does not impact computation of batch metrics.
Breaking changes
tfrs.metrics.FactorizedTopKrequires the candidate ids for positive
candidates to be supplied when using approximate top-K sources. Each top-K
layer now has anexactmethod to broadcast its ability to return exact or
approximate top-K results.- Removed
metricsconstructor parameter fortfrs.metrics.FactorizedTopK.
FactorizedTopKonly makes sense with top-k metrics, and this change
enforces this. - Replaced the
kconstructor argument intfrs.metrics.FactorizedTopKwith
ks: a list ofkvalues at which to compute the top k metric.
Changed
- The
tfrs.metrics.FactorizedTopKmetric can now compute candidate-id based
metrics when given thetrue_candidate_idsargument in itscallmethod.
Added
- The
Retrievaltask now also accepts aloss_metricsargument.