Skip to main content

Load from the library

example-ca-ppa is a synthetic California personal auto program. Downloads require an Effective API key and the program’s download permission. Raters explains the available offerings. Omitting revision loads the latest published version; pass revision= to load a specific version.

Load a local download

Download a local copy, then pass its folder as a Path:
Download a program explains how to save a local copy and pin its version.
To load from your organization’s catalog, pass its program ID: Program.load("my-program").Pass local_files_only=True to load a cached program:
Pass revision= to select a published version or exact bundle, as described in Download a program.

Inspect the book schema

program.schema lists the tables and columns the program accepts. Its preparation function converts those facts into the rating algorithm’s inputs.

Try the example book

The example program includes a book of synthetic policies:
program.rater.inputs lists the engine’s input fields and allowed values. program.rater.outputs lists its outcomes:
For this program, premium is the policy’s annual premium. Each vehicle also has premiums by coverage.program.rater.tables holds the rating tables, with exact Decimal values:

Next step

Rate a book with a program using the example book or your own data. Use Validate a program to check its results against expected premiums.