QuickStart Guide

Welcome to Loopquest 🎉!

Install

pip install loopquest

Local Evaluation

Copy the following code and run it in your machine. The data will be recorded in Loopquest. Check the Github code for API details.

import loopquest
from loopquest.eval import evaluate_local_policy
from loopquest.policy.base import BasePolicy
class MyPolicy(BasePolicy):
  def __init__(self):
    # Implement your policy
    pass
  def compute_action(self, observation):
    # Implement your policy
    pass
loopquest.init()
policy = MyPolicy()
evaluate_local_policy(
  policy,
  [
    "CartPole-v1",
    "MountainCar-v0",
    "LunarLander-v2",
  ],
  num_episodes=10,
  num_steps_per_episode=1000,
  project_name="Your Project Name",
  experiment_name="Your Experiment Name",
  project_description="Your Project Description",
  experiment_description="Your Experiment Description",
  # Feel free to record any experiment configs here as a dict
  experiment_configs={})

Dataset Download

Then download the data generated by the experiment for foundation model training or offline Reinforcement Learning.

from loopquest.datasets import load_datasets
ds = load_datasets(["exp_id1", "exp_id2"])