Skip to content

Commit

Permalink
include json resources
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-m committed Mar 24, 2021
1 parent 7eeb647 commit 3a94086
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@
package_dir={"": "src"},
packages=find_packages("src"),
package_data={
"datasets": [
"scripts/templates/*",
],
"datasets": ["scripts/templates/*", "*.json"],
},
entry_points={"console_scripts": ["datasets-cli=datasets.commands.datasets_cli:main"]},
install_requires=REQUIRED_PKGS,
Expand Down

1 comment on commit 3a94086

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Show benchmarks

PyArrow==0.17.1

Show updated benchmarks!

Benchmark: benchmark_array_xd.json

metric read_batch_formatted_as_numpy after write_array2d read_batch_formatted_as_numpy after write_flattened_sequence read_batch_formatted_as_numpy after write_nested_sequence read_batch_unformated after write_array2d read_batch_unformated after write_flattened_sequence read_batch_unformated after write_nested_sequence read_col_formatted_as_numpy after write_array2d read_col_formatted_as_numpy after write_flattened_sequence read_col_formatted_as_numpy after write_nested_sequence read_col_unformated after write_array2d read_col_unformated after write_flattened_sequence read_col_unformated after write_nested_sequence read_formatted_as_numpy after write_array2d read_formatted_as_numpy after write_flattened_sequence read_formatted_as_numpy after write_nested_sequence read_unformated after write_array2d read_unformated after write_flattened_sequence read_unformated after write_nested_sequence write_array2d write_flattened_sequence write_nested_sequence
new / old (diff) 0.017249 / 0.011353 (0.005896) 0.015178 / 0.011008 (0.004170) 0.054771 / 0.038508 (0.016263) 0.037036 / 0.023109 (0.013927) 0.224648 / 0.275898 (-0.051250) 0.268470 / 0.323480 (-0.055010) 0.006561 / 0.007986 (-0.001424) 0.004591 / 0.004328 (0.000263) 0.008308 / 0.004250 (0.004057) 0.050170 / 0.037052 (0.013118) 0.219386 / 0.258489 (-0.039103) 0.265741 / 0.293841 (-0.028100) 0.157402 / 0.128546 (0.028856) 0.119272 / 0.075646 (0.043626) 0.459226 / 0.419271 (0.039954) 0.622049 / 0.043533 (0.578517) 0.218644 / 0.255139 (-0.036495) 0.235711 / 0.283200 (-0.047488) 2.387899 / 0.141683 (2.246216) 1.919738 / 1.452155 (0.467584) 1.952922 / 1.492716 (0.460206)

Benchmark: benchmark_indices_mapping.json

metric select shard shuffle sort train_test_split
new / old (diff) 0.042553 / 0.037411 (0.005141) 0.020620 / 0.014526 (0.006094) 0.032637 / 0.176557 (-0.143919) 0.049362 / 0.737135 (-0.687773) 0.032804 / 0.296338 (-0.263534)

Benchmark: benchmark_iterating.json

metric read 5000 read 50000 read_batch 50000 10 read_batch 50000 100 read_batch 50000 1000 read_formatted numpy 5000 read_formatted pandas 5000 read_formatted tensorflow 5000 read_formatted torch 5000 read_formatted_batch numpy 5000 10 read_formatted_batch numpy 5000 1000 shuffled read 5000 shuffled read 50000 shuffled read_batch 50000 10 shuffled read_batch 50000 100 shuffled read_batch 50000 1000 shuffled read_formatted numpy 5000 shuffled read_formatted_batch numpy 5000 10 shuffled read_formatted_batch numpy 5000 1000
new / old (diff) 0.233591 / 0.215209 (0.018382) 2.340896 / 2.077655 (0.263241) 1.290950 / 1.504120 (-0.213170) 1.177376 / 1.541195 (-0.363819) 1.243019 / 1.468490 (-0.225471) 6.421259 / 4.584777 (1.836482) 5.824168 / 3.745712 (2.078456) 8.165363 / 5.269862 (2.895501) 7.172834 / 4.565676 (2.607157) 0.633292 / 0.424275 (0.209017) 0.010692 / 0.007607 (0.003085) 0.262624 / 0.226044 (0.036580) 2.757273 / 2.268929 (0.488345) 1.767970 / 55.444624 (-53.676654) 1.554272 / 6.876477 (-5.322205) 1.617435 / 2.142072 (-0.524637) 6.438386 / 4.805227 (1.633159) 4.665606 / 6.500664 (-1.835058) 10.789456 / 0.075469 (10.713987)

Benchmark: benchmark_map_filter.json

metric filter map fast-tokenizer batched map identity map identity batched map no-op batched map no-op batched numpy map no-op batched pandas map no-op batched pytorch map no-op batched tensorflow
new / old (diff) 10.384861 / 1.841788 (8.543073) 14.219747 / 8.074308 (6.145439) 17.950247 / 10.191392 (7.758855) 0.887371 / 0.680424 (0.206947) 0.310007 / 0.534201 (-0.224194) 0.758928 / 0.579283 (0.179645) 0.586326 / 0.434364 (0.151962) 0.684780 / 0.540337 (0.144443) 1.556044 / 1.386936 (0.169108)
PyArrow==1.0
Show updated benchmarks!

Benchmark: benchmark_array_xd.json

metric read_batch_formatted_as_numpy after write_array2d read_batch_formatted_as_numpy after write_flattened_sequence read_batch_formatted_as_numpy after write_nested_sequence read_batch_unformated after write_array2d read_batch_unformated after write_flattened_sequence read_batch_unformated after write_nested_sequence read_col_formatted_as_numpy after write_array2d read_col_formatted_as_numpy after write_flattened_sequence read_col_formatted_as_numpy after write_nested_sequence read_col_unformated after write_array2d read_col_unformated after write_flattened_sequence read_col_unformated after write_nested_sequence read_formatted_as_numpy after write_array2d read_formatted_as_numpy after write_flattened_sequence read_formatted_as_numpy after write_nested_sequence read_unformated after write_array2d read_unformated after write_flattened_sequence read_unformated after write_nested_sequence write_array2d write_flattened_sequence write_nested_sequence
new / old (diff) 0.017262 / 0.011353 (0.005909) 0.014267 / 0.011008 (0.003259) 0.053034 / 0.038508 (0.014525) 0.038141 / 0.023109 (0.015032) 0.373283 / 0.275898 (0.097385) 0.435961 / 0.323480 (0.112481) 0.006510 / 0.007986 (-0.001476) 0.004667 / 0.004328 (0.000338) 0.006755 / 0.004250 (0.002505) 0.058565 / 0.037052 (0.021513) 0.385638 / 0.258489 (0.127148) 0.446861 / 0.293841 (0.153020) 0.142237 / 0.128546 (0.013691) 0.121897 / 0.075646 (0.046251) 0.474999 / 0.419271 (0.055728) 0.421108 / 0.043533 (0.377575) 0.361992 / 0.255139 (0.106853) 0.401370 / 0.283200 (0.118171) 1.730735 / 0.141683 (1.589052) 1.980621 / 1.452155 (0.528466) 2.028299 / 1.492716 (0.535582)

Benchmark: benchmark_indices_mapping.json

metric select shard shuffle sort train_test_split
new / old (diff) 0.043386 / 0.037411 (0.005975) 0.023149 / 0.014526 (0.008624) 0.033847 / 0.176557 (-0.142709) 0.055074 / 0.737135 (-0.682061) 0.048590 / 0.296338 (-0.247748)

Benchmark: benchmark_iterating.json

metric read 5000 read 50000 read_batch 50000 10 read_batch 50000 100 read_batch 50000 1000 read_formatted numpy 5000 read_formatted pandas 5000 read_formatted tensorflow 5000 read_formatted torch 5000 read_formatted_batch numpy 5000 10 read_formatted_batch numpy 5000 1000 shuffled read 5000 shuffled read 50000 shuffled read_batch 50000 10 shuffled read_batch 50000 100 shuffled read_batch 50000 1000 shuffled read_formatted numpy 5000 shuffled read_formatted_batch numpy 5000 10 shuffled read_formatted_batch numpy 5000 1000
new / old (diff) 0.294616 / 0.215209 (0.079407) 2.946649 / 2.077655 (0.868995) 1.966505 / 1.504120 (0.462385) 1.860486 / 1.541195 (0.319292) 1.943523 / 1.468490 (0.475033) 6.349714 / 4.584777 (1.764937) 5.422875 / 3.745712 (1.677163) 7.998799 / 5.269862 (2.728938) 7.001428 / 4.565676 (2.435751) 0.609394 / 0.424275 (0.185119) 0.010500 / 0.007607 (0.002893) 0.323050 / 0.226044 (0.097006) 3.285236 / 2.268929 (1.016308) 2.358255 / 55.444624 (-53.086369) 2.182095 / 6.876477 (-4.694382) 2.280214 / 2.142072 (0.138142) 6.388481 / 4.805227 (1.583254) 5.899510 / 6.500664 (-0.601154) 8.467177 / 0.075469 (8.391708)

Benchmark: benchmark_map_filter.json

metric filter map fast-tokenizer batched map identity map identity batched map no-op batched map no-op batched numpy map no-op batched pandas map no-op batched pytorch map no-op batched tensorflow
new / old (diff) 11.046227 / 1.841788 (9.204439) 15.354335 / 8.074308 (7.280027) 18.125454 / 10.191392 (7.934062) 1.110044 / 0.680424 (0.429620) 0.643766 / 0.534201 (0.109565) 0.752937 / 0.579283 (0.173654) 0.582553 / 0.434364 (0.148189) 0.664373 / 0.540337 (0.124036) 1.545569 / 1.386936 (0.158633)

CML watermark

Please sign in to comment.