Skip to content

Add example of using custom templates for model cards #248

@BenjaminBossan

Description

@BenjaminBossan

Once #203 is merged, it would be good to give an example of how to use custom templates for model cards.

This should include how to add the sections that come by default with the default template:

  • metrics (when calling card.add_metrics)
  • getting started code (automatic)
  • model hyperparams
  • model plot (automatic if model_diagram=True)

Those are not added by default when using a custom template but it's still possible to add them the normal way (i.e. using card.add), although it's not obvious how. The examples should explain that.

This might also require exposing some convenience functions to the user, e.g. a way to create the sklearn model diagram with a single function call.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions