File size: 376 Bytes
96ced71 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from datasets import load_dataset
import tqdm
import time
def main():
for subset in ["algebraic-stack"]:
data = load_dataset(".", subset)
print(data)
start = time.time()
for x in tqdm(data):
pass
total = time.time() - start
print(f"Traversed {subset} in {total} seconds")
if __name__=="__main__":
main()
|