# CROSS-DOMAIN OFFLINE POLICY ADAPTATION VIA SELECTIVE TRANSITION CORRECTION

This is the codes for our ICLR 2025 submission, Selective Transition Correction(STC)


## How to run

We run our experiments with: python==3.8.19, torch==1.12.1, gym==0.23.1, dm-control==1.0.8, numpy==1.24.4, d4rl==1.1, mujoco-py==2.1.2.14
 

We run all experiments of STC with the train.py file.

# Example of running STC on hopper task

CUDA_VISIBLE_DEVICES=4 python train.py \
     --env hopper-gravity \
     --policy STC \
     --srctype medium \
     --tartype medium \
     --seed 0
```

## Key Flags
We explain some key flags below:

--env specifies the name of the target domain, and the source domain will be automatically prepared
--policy Specifies the algorithm to be used
--srctype specifies the dataset quality of the source domain dataset
--tartype specifies the dataset quality of the target domain dataset


