File size: 344 Bytes
bdafe83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
import random
from os import path as osp

import numpy as np


def check_cwd():
    basename = osp.basename(osp.normpath(os.getcwd()))
    assert basename.lower() in [
        "agentreview"], "Please run this file from the repository root directory (AgentReview/)"


def set_seed(seed):
    random.seed(seed)
    np.random.seed(seed)