Documentation for Metric Module¶
TrustMetricManager
¶
Manager class to help store the output directory and handle calls from the FL framework.
Source code in nebula/addons/trustworthiness/metric.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
evaluate(experiment_name, weights, use_weights=False)
¶
Evaluates the trustworthiness score.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scenario
|
object
|
The scenario in whith the trustworthiness will be calculated. |
required |
weights
|
dict
|
The desired weghts of the pillars. |
required |
use_weights
|
bool
|
True to turn on the weights in the metric config file, default to False. |
False
|
Source code in nebula/addons/trustworthiness/metric.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|