Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenWizard2015 committed Jun 28, 2024
1 parent 0a4cb47 commit 86bfac0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/make-blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,19 @@ def main(args):
stats = None
with open(os.path.join(folder, 'remote', 'stats.json'), 'r') as f:
stats = json.load(f)

badDatasets = [] # list of tuples (userId, placeId, screenId)
if os.path.exists(os.path.join(folder, 'blacklist.json')):
with open(os.path.join(folder, 'blacklist.json'), 'r') as f:
badDatasets = json.load(f)
pass

model = dict(timesteps=timesteps, stats=stats, use_encoders=False)
assert args.model is not None, 'The model should be specified'
if args.model is not None:
model['weights'] = dict(folder=folder, postfix=args.model, embeddings=True)

model = CModelTrainer(**model)
badDatasets = [] # list of tuples (userId, placeId, screenId) for the blacklisted datasets
# find folders with the name "/test-*/"
for nm in glob.glob(os.path.join(folder, 'test-main', 'test-*/')):
evalDataset = CTestLoader(nm)
Expand Down

0 comments on commit 86bfac0

Please sign in to comment.