You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note, that due to the calculation of embeddings the function call might take a while. Embedding 10k samples on a Mac M2 take for example about 40secs. Limit the size of the passed DataFrames, or use the `max_sample_size_embeddings` parameter to speed up the report.
53
+
52
54
## Function signature
53
55
54
56
```python
@@ -126,21 +128,21 @@ Three sets of metrics are calculated to compare synthetic data with the original
126
128
### Accuracy
127
129
128
130
The L1 distances between the discretized marginal distributions of the synthetic and the original training data are being calculated for all columns.
129
-
The reported accuracy is expressed as 100% minus the total variational distance (TVD), which is half the L1 distance between the two distributions.
131
+
The reported accuracy is expressed as 100% minus the total variational distance (TVD), which is half the L1 distance between the two distributions.
130
132
These accuracies are then averaged to produce a single accuracy score, where higher scores indicate better synthetic data.
131
133
132
-
1.**Univariate Accuracy**: The accuracy of the univariate distributions for all target columns is measured.
133
-
2.**Bivariate Accuracy**: The accuracy of all pair-wise distributions for target columns, as well as for target columns with respect to the context columns, is measured.
134
-
3.**Coherence Accuracy**: The accuracy of the auto-correlation for all target columns is measured. This is applicable only for sequential data.
134
+
1.**Univariate Accuracy**: The accuracy of the univariate distributions for all target columns is measured.
135
+
2.**Bivariate Accuracy**: The accuracy of all pair-wise distributions for target columns, as well as for target columns with respect to the context columns, is measured.
136
+
3.**Coherence Accuracy**: The accuracy of the auto-correlation for all target columns is measured. This is applicable only for sequential data.
135
137
136
138
An overall accuracy score is calculated as the average of these aggregate-level scores.
137
139
138
140
### Similarity
139
141
140
142
All records are embedded into an embedding space to calculate two metrics:
141
143
142
-
1.**Cosine Similarity**: The cosine similarity between the centroids of the synthetic and the original training data is calculated and compared to the cosine similarity between the centroids of the original training and holdout data. Higher scores indicate better synthetic data.
143
-
2.**Discriminator AUC**: A binary classifier is trained to determine whether synthetic and original training data can be distinguished based on their embeddings. This score is compared to the same metric for the original training and holdout data. A score close to 50% indicates that synthetic samples are indistinguishable from original samples.
144
+
1.**Cosine Similarity**: The cosine similarity between the centroids of the synthetic and the original training data is calculated and compared to the cosine similarity between the centroids of the original training and holdout data. Higher scores indicate better synthetic data.
145
+
2.**Discriminator AUC**: A binary classifier is trained to determine whether synthetic and original training data can be distinguished based on their embeddings. This score is compared to the same metric for the original training and holdout data. A score close to 50% indicates that synthetic samples are indistinguishable from original samples.
0 commit comments