RAI.certificates
Submodules
RAI.certificates.certificate module
- class RAI.certificates.certificate.Certificate[source]
Bases:
object
Certificate Objects contain information about a particular certificate. Certificates are automatically loaded in by CertificateManagers and perform evaluation using metric data they are provided in combination with the certificate data loaded in.
- evaluate(metrics, certs)[source]
From the certificate json file condition key is selected and based on that evalutions will happen
- Parameters:
metrics – metrics data is provided based on that evaluation will happen
certs – certificate data is provided based on that evaluation will happen
- Returns:
Returns the evaluation result based on the input data
RAI.certificates.certificate_manager module
- class RAI.certificates.certificate_manager.CertificateManager[source]
Bases:
object
CertificateManager is a class automatically created by AISystems. This class loads a file containing information on which certificates to use, before creating associated Certificate Objects, as well as prompting their associated evaluations.
- compute(metric_values)[source]
Accepts the metric values and returns the value as per the name of the certificate
- Parameters:
metric_values(dict)
- Returns:
metric results(list)
- get_metadata() dict [source]
return the certificate metadata information
- Parameters:
self – None
- Returns:
metadata(dict)