update data loader
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273---configs:- config_name: defaultdata_files:- split: trainpath: "data/**/*.json"- config_name: alfworlddata_files:- split: trainpath: "data/alfworld/**/*.json"- config_name: webshopdata_files:- split: trainpath: "data/webshop/**/*.json"- config_name: blocksworlddata_files:- split: trainpath: "data/blocksworld/**/*.json"- config_name: scienceworlddata_files:- split: trainpath: "data/scienceworld/**/*.json"- config_name: textworlddata_files:- split: trainpath: "data/textworld/**/*.json"---# π RewardPrediction: A Fine-grained Step-wise Reward Prediction Benchmark[**π Project Page**](https://yijunshens.github.io/statefactory_page) | [**π» GitHub**](https://github.com/yijunshens/statefactory) | [**π Dataset**](https://huggingface.co/datasets/YijunShen/RewardPrediction)**RewardPrediction** is a large-scale benchmark designed to evaluate fine-grained, step-wise reward prediction across five diverse text-based environments: **AlfWorld**, **ScienceWorld**, **TextWorld**, **WebShop**, and **BlocksWorld**. It comprises a total of 2,454 unique trajectories with dense reward annotations.To prevent heuristic reward hacking, we structured the benchmark using a **paired positive-negative strategy**:* **Positive Trajectories**: Expert demonstrations augmented with random interaction steps at the boundaries.* **Negative Trajectories**: Failure trajectories generated via a random policy.---## π₯ Load RewardPrediction BenchmarkOur benchmark can be loaded from the π€ huggingface repo at [yijunshen/RewardPrediction](https://huggingface.co/datasets/YijunShen/RewardPrediction) (reconstructing the `alfworld/`, `webshop/` folders, etc.).```pythonfrom datasets import load_dataset# Load the dataset from Hugging Facedataset = load_dataset("yijunshen/RewardPrediction")# Accessing a sample trajectorysample_trajectory = dataset["train"][0]```## π Data SchemaEach trajectory consists of a list of interaction steps. Each step contains the following fields:* **goal description** (string): The natural language goal the agent needs to achieve.* **action** (string): The specific action executed by the agent at this time step.* **observation** (string): The textual feedback/observation returned by the environment.* **reward** (dict): A dictionary containing fine-grained reward labels:* `raw` (float): The native, sparse environment reward (usually `1.0` for success, `0.0` otherwise).* `shaped` (float): The interpolated, step-wise ground-truth reward.* `is_expert` (boolean): Indicates whether this step is part of an expert demonstration.## βοΈ CitationIf you find this dataset helpful for your research, please cite our work:(Waiting to be released)12345678910111213141516# NerfiesThis is the repository that contains source code for the [Nerfies website](https://nerfies.github.io).If you find Nerfies useful for your work please cite:```@article{park2021nerfiesauthor = {Park, Keunhong and Sinha, Utkarsh and Barron, Jonathan T. and Bouaziz, Sofien and Goldman, Dan B and Seitz, Steven M. and Martin-Brualla, Ricardo},title = {Nerfies: Deformable Neural Radiance Fields},journal = {ICCV},year = {2021},}```# Website License<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
README.md+12-69