Rate This Document
Findability
Accuracy
Completeness
Readability

Adding Additional Parameters

In the ANN-Benchmarks source code, the result is output in non-batch mode by default. You can add the --outbatch parameter to the source code to view the command. After the modification, the result is output in batch mode.

  1. Open the data_export.py file.
    1
    vim /data/ann-benchmarks-main/data_export.py
    
  2. Add the outbatch parameter to line 12 in the data_export.py file.
    1
    parser.add_argument("--outbatch",action="store_true",help="output using batch mode")
    
  3. Modify the methods in lines 19 and 20 of the data_export.py file to transfer parameters.
    1
    2
    if len(list(load_all_results(dataset_name,None, args.outbatch))) > 0:
        results = load_all_results(dataset_name,None, args.outbatch)