FEA-Bench / testbed /fairlearn__fairlearn /test /perf /metric_logging_script_postprocessing.txt
hc99's picture
Add files using upload-large-folder tool
fc0f7bd verified
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
assert 'mitigation_execution_time' in vars(), "mitigation_execution_time is expected to be defined"
assert 'estimator_fit_execution_time' in vars(), "estimator_fit_execution_time is expected to be defined"
# compare mitigation time with the unconstrained estimator fit time
run.log('mitigation_time_overhead_relative', (mitigation_execution_time + estimator_fit_execution_time) / estimator_fit_execution_time)