This release focus on improving and extending data samplers.
Added
- `SingleShotMemorySampler()` is available
- Data samplers now support:
- The use of a data augmenter
- Having a warmup period before augmentation
- `single_lookup()` now returns the rank of each match.
- Memory Samplers now scale to millions of examples without slowdown.
Fixes
- Fixed the issue where model couldn't be reloaded due to a bug in load_model()
Changed
- Rewrote the sampler interface to allows better customization and subclassing.
[0.6.x] - Distance Metrics
This release add specialized distance metrics and fixes bugs
Added
- Distance metrics are now avialable under `tensorflow_similarity.distance_metrics` including:
- `dist_gap`: distance between the maximum positive distance and the min negative distance.
- `pos_max`: positive maximum distance
- `neg_min`: negative minimal distance.
- More generally minimal, average and maximal distance for positive and negative anchors are supported. You can either uses the short-hand alias (e.g `neg_min`, `pos_avg`....), or use the underlying `DistanceMetric()` class that allows to configure all aspect of the metric.