TRAIS-Lab / dattri

`dattri` is a PyTorch library for developing, benchmarking, and deploying efficient data attribution algorithms.
https://trais-lab.github.io/dattri/
MIT License
28 stars 8 forks source link

[dattri.metrics] Implement LDS #49

Closed jiaqima closed 4 months ago

jiaqima commented 4 months ago

Description

This PR implemented lds and calculate_lds_ground_truth.

1. Motivation and Context

Implement lds and calculate_lds_ground_truth for the LDS metric calculation. This PR together with #48 is based on #21. PR #21 got a bit too messy to comment and edit.

This PR and #48 will close issue #9.

2. Summary of the change

3. What tests have been added/updated for the change?