Skip to content

Commit

Permalink
Select query indices
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Mar 20, 2024
1 parent da7fc14 commit 5e2b059
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 139 deletions.
5 changes: 3 additions & 2 deletions examples/cifar/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def main():
model = prepare_model(model, task)

analyzer = Analyzer(
analysis_name=args.dataset_name,
analysis_name="cifar10",
model=model,
task=task,
cpu=False,
Expand All @@ -130,8 +130,9 @@ def main():
scores_name="pairwise",
factors_name=args.factor_strategy,
query_dataset=eval_dataset,
query_indices=list(range(2000)),
train_dataset=train_dataset,
per_device_query_batch_size=len(eval_dataset),
per_device_query_batch_size=500,
overwrite_output_dir=True,
)
scores = analyzer.load_pairwise_scores("pairwise")
Expand Down
Loading

0 comments on commit 5e2b059

Please sign in to comment.