Skip to main content

TimeWarp benchmark for BrowserGym

Project description

TimeWarp Benchmark for BrowserGym

TimeWarp benchmark with 4 environments: WIKI, WEBSHOP, NEWS, HOME.

Environment Setup

To set the environment, please follow the instructions in our Github repo.

Browsergym Setup

pip install browsergym-timewarp
python -c "import nltk; nltk.download('punkt_tab')"

Environment Variables

export TW_WIKI="http://localhost:5000"
export TW_WEBSHOP="http://localhost:5001"
export TW_NEWS="http://localhost:5002"
export TW_USERNAME="admin"  # Optional
export TW_PASSWORD="admin"  # Optional
export OPENAI_API_KEY="your-key"  # For fuzzy evaluation

Usage

import gymnasium as gym
import browsergym.timewarp

env = gym.make("browsergym/timewarp.1")
obs, info = env.reset()
# Run your agent
env.close()

Adding Tasks

  1. Add to src/browsergym/timewarp/data/test.raw.json
  2. Update TASK_IDS in config.py
  3. Add to metadata/timewarp.csv

Sites: ["wiki"], ["webshop"], ["news"] Placeholders: __WIKI__, __WEBSHOP__, __NEWS__

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browsergym_timewarp-0.1.0.tar.gz (53.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

browsergym_timewarp-0.1.0-py3-none-any.whl (45.0 kB view details)

Uploaded Python 3

File details

Details for the file browsergym_timewarp-0.1.0.tar.gz.

File metadata

  • Download URL: browsergym_timewarp-0.1.0.tar.gz
  • Upload date:
  • Size: 53.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for browsergym_timewarp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 57b312742c8240ee102a9aca7a9a6c9ffc8c16c9a9b2799edd1cb9f930fc8235
MD5 4274ebb7103c0705c41949ed6efa57b3
BLAKE2b-256 b397367d14cd1b79537f701e60f56f0698f67663f68a40430d7609d9f5336e1e

See more details on using hashes here.

File details

Details for the file browsergym_timewarp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for browsergym_timewarp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de764934ce34f1939a97c8c36567fe0aad7f8f087247ab72ae896a9c951abed5
MD5 04b9a689fa49ff15b98c6f6afdb863f2
BLAKE2b-256 9d646e36088f3ab04b27cad26c89295a9db433fe0e59f1dab7f59835a7e9c5c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page