Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception:    SplitsNotFoundError
Message:      The split names could not be parsed from the dataset config.
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 289, in get_dataset_config_info
                  for split_generator in builder._split_generators(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 81, in _split_generators
                  first_examples = list(islice(pipeline, self.NUM_EXAMPLES_FOR_FEATURES_INFERENCE))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 48, in _get_pipeline_from_tar
                  with fsspec.open(extracted_file_path) as f:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 103, in __enter__
                  f = self.fs.open(self.path, mode=mode)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1293, in open
                  f = self._open(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/filesystems/compression.py", line 85, in _open
                  return self._open_with_fsspec().open()
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 461, in open
                  out = open_files(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 302, in open_files
                  [
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 303, in <listcomp>
                  OpenFile(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 77, in __init__
                  self.compression = get_compression(path, compression)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 513, in get_compression
                  raise ValueError(f"Compression type {compression} not supported")
              ValueError: Compression type lz4 not supported
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 65, in compute_split_names_from_streaming_response
                  for split in get_dataset_split_names(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 343, in get_dataset_split_names
                  info = get_dataset_config_info(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 294, in get_dataset_config_info
                  raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
              datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Metamon Replay Dataset

Paper | Project page | Code

A collection of parsed or ("reconstructed") Pokémon Showdown replays organized by format (gen1ou, gen2ou, etc.).

Converted to RL data by Metamon (arXiv Appendix D)

overview image

Each format is provided as a separate tar.gz file:

  • gen1ou.tar.gz - Generation 1 OU format replays
  • gen2ou.tar.gz - Generation 2 OU format replays ...etc.

Which, when extracted, will be a large dir of lz4-compressed json files with names:

{showdown battle id}_{ELO rating}_{pov player username}_vs_{opponent username}_{date as DD-MM-YYYY}_{pov player WIN/LOSS}.json.lz4

For example:

gen1nu-2049363853_1022_block26952_vs_pelipper13259_02-01-2024_WIN.json.lz4

Note that usernames are anonymous pseudonyms of real Showdown usernames that are consistent with jakegrigsby/metamon-raw-replays.

Metamon handles the process of loading these files as ML training data --- see the repo README. The format is:

import json
import lz4.frame
from metamon.interface import UniversalState

with lz4.frame.open(filename, "rb") as f:
    data = json.loads(f.read().decode("utf-8"))
states = [UniversalState.from_dict(s) for s in data["states"]]
actions = data["actions"]

Where states can then be mapped to any observation space, and consecutive states (s_t, s_{t+1}) can be mapped to any reward function.

In addition to the parsed replays, the dataset contains:

  • revealed_teams.tar.gz: A record of the team revealed by every battle in the dataset. Revealed teams are incomplete because they only record Pokemon/moves/items/abilities that directly impacted the battle. They are the final version of the point-of-view player's team as seen by their opponent at the end of the battle. Replay reconstruction involves filling in the missing info. We now use these files to generate team prediction stats.

  • replay_stats.targ.gz : jsons of Pokemon "rosters" (6 Pokemon names only) and Pokemon sets (moves/items/abilities) with frequencies listing the number of historical replays that may have used them ("may have" == "nothing was revealed that makes it impossible for this set or roster to have been their true team").

The changelog for versions (revision) is:

  • v0: the final version of the dataset used by the paper, in the original format used by the paper. About 1M replays in a numpy format hardcoded to the observation space and reward function that is now called DefaultObservationSpace and DefaultShapedReward in the metamon repo.

  • v1: All replays as of April 25th, 2025. Replays are now stored as jsons of metamon.interface.UniversalStates so that users can change observation spaces and reward functions on-the-fly. v0 uses a team prediction strategy now called NaiveTeamPredictor in metamon.data.team_prediction.predictor, while v1 upgrades to ReplayPredictor. From here on, versions include a revealed_teams directory that holds all the partially revealed teams in the replays, and a replay_stats dir that summarizes info from these teams that are used for team prediction.

  • v2: All replays as of May 29th, 2025 (aligns with metamon-raw-replays v2. Now stored as compressed lz4 after the previous format change made the dataset far too large. Fixes a v1 bug where items and abilities could appear as "backwardmarkersforceunknown" (which are values meant to be guessed by team prediction).

  • v3-beta: Does not add new Gen1-4 battles. Instead, backfills the dataset with all Gen 9 OU battles up to mid June 2025. Support for Gen 9 required significant changes across generations and this version of the dataset has not yet been confirmed to replicate Gen 1-4 paper results.

  • v3: Does not add new replays. Instead, adds an opponent_teampreview state feature to support gen 9. Other gens are missing this key and it is filled blank by default in the dataloader. This would be fixed the next time the full dataset is reparsed.

Downloads last month
294

Models trained or fine-tuned on jakegrigsby/metamon-parsed-replays