pietrolesci commited on
Commit
51e564e
1 Parent(s): aeb137f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md CHANGED
@@ -71,4 +71,20 @@ for name, df_ in datasets.items():
71
  # push to hub
72
  ds = DatasetDict(ds)
73
  ds.push_to_hub("mpe", token="<token>")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  ```
 
71
  # push to hub
72
  ds = DatasetDict(ds)
73
  ds.push_to_hub("mpe", token="<token>")
74
+
75
+ # check overlap between splits
76
+ from itertools import combinations
77
+ for i, j in combinations(ds.keys(), 2):
78
+ print(
79
+ f"{i} - {j}: ",
80
+ pd.merge(
81
+ ds[i].to_pandas(),
82
+ ds[j].to_pandas(),
83
+ on=["premise", "hypothesis", "label"],
84
+ how="inner",
85
+ ).shape[0],
86
+ )
87
+ #> dev - test: 0
88
+ #> dev - train: 0
89
+ #> test - train: 0
90
  ```