MCPcopy Create free account
hub / github.com/dblalock/bolt / experiment

Function experiment

experiments/python/main.py:615–631  ·  view source on GitHub ↗
(eval_dists=False, dotprods=False)

Source from the content-addressed store, hash-verified

613
614
615def experiment(eval_dists=False, dotprods=False):
616
617 # which_datasets = [datasets.Mnist]
618 # which_datasets = [datasets.Sift1M, datasets.LabelMe,
619 # datasets.Convnet1M, datasets.Mnist]
620 which_datasets = [datasets.Glove]
621 # which_datasets = [datasets.Deep1M, datasets.Gist]
622
623 if eval_dists:
624 save_dir = '../results/acc_dotprods/' if dotprods else '../results/acc_l2'
625 else:
626 save_dir = '../results/recall_at_r/'
627
628 for which_dataset in which_datasets:
629 _dicts, _details = _experiment_one_dataset(
630 which_dataset, eval_dists=eval_dists, dotprods=dotprods,
631 save_dir=save_dir)
632
633
634def main():

Callers 1

mainFunction · 0.85

Calls 1

_experiment_one_datasetFunction · 0.85

Tested by

no test coverage detected