Model documents and templates
What kind of templates are provided by ValidMind?
ValidMind provides the following default template types:1
- Development (model documentation)
- Validation (validation reports)
- Monitoring (ongoing monitoring reports)
You can also create custom document types and associated templates to suit your organization’s unique needs.
Can templates be customized for our use cases?
Yes, the ValidMind Platform2 allows you to configure versioned templates based on document requirements for each model or lifecycle use case.
- ValidMind’s templates are fully customizable,3 and are complemented by the ability to manage validation guidelines.
- You can swap between different versions of templates or apply another version of the current template.4
- Template outlines can be modified right in the ValidMind Platform. We also offer an advanced raw YAML editor, enabling you to make detailed changes.
By default, the Customer Admin role5 has sufficient permissions to manage document templates, and you must be a Developer or Validator to be able to swap document templates.
Can documents be created right in the ValidMind Platform?
Yes, you can work with model documentation, validation reports, ongoing monitoring reports, or any other document type directly in the ValidMind Platform, without having to first generate anything using the ValidMind Library.6
Can I run tests and log documentation without a model?
Yes! If you do not have a model ready, or your model can’t be loaded directly, or you only have access to model predictions, you can still run tests and log documentation using the ValidMind Library as long as you’re able to load the model predictions.
- Use
assign_predictions()9 to load predictions from a separate file or a dataset with predictions. - Call
init_model()10 but instead of a trained model instance, pass aninput_idand model metadata.ModelMetadata()11 will use the provided metadata instead of trying to calculate it from the model’s library.
10 init_model()
For example:
external_model = vm.init_model(
input_id="spark_ml_model",
metadata={...}
)Can we attach files to models, artifacts, or documents?
Yes, attachment type inventory fields are available for custom use.12 Once created, attachment type fields allow you to upload supporting files to your model.
- Out-of-the-box functionality is included for attaching files to model artifacts.
- You can also attach images to document content blocks and comments.
By default, the Customer Admin role has sufficient permissions to manage model inventory fields.
Do you support including images in model documents?
Yes, as long as you can produce the image with Python or open the image from a file, you can include it in your documents with ValidMind:13
- If you want to log an image as a test result, you can do so by passing the path to the image as a parameter to the custom test and then opening the file in the test function.
- If you are using a plotting library that isn’t directly supported by ValidMind, you can still return the image directly as a bytes-like object.
Can documents be exported?
Yes, ValidMind currently supports exporting documents in Word (.docx) format.14
14 Depending on the integration requirements of the systems used by your validation teams, such as connectivity via API, SharePoint, and more, ValidMind can work with you to automate the export and storage of documents into these systems.