seqme.metrics.AuthPct#
- class seqme.metrics.AuthPct(train_set, embedder, *, name='Authenticity')[source]#
Proportion of authentic generated samples.
Authenticity is defined as the fraction of sequences whose nearest training neighbor is closer to some other training sample than to the sequence.
References
- [1] Alaa et al., “How Faithful is your Synthetic Data? Sample-level Metrics for Evaluating and Auditing Generative Models.” (2022).
- __call__(sequences)[source]#
Compute the authenticity score based on the embeddings of the input sequences and the train set.
- Parameters:
- Returns:
Authenticity score.
- Return type:
Methods
Attributes
|
Name of the metric. |
|
Whether lower or higher scores indicate better performance. |