Load a program from Effective’s library by its effective:// name:
A program is a rater, the schema of the book it accepts, and the prepare function that turns
that book into the rater’s inputs. example-ca-ppa is a synthetic California personal auto program.
Choose where to load from
- Pass
revision= to pin a version, as Download a program describes.
- Pass
local_files_only=True to read the local cache only.
Loading a program runs its Python prepare. Load programs from Effective’s library, your own
catalog or files you trust.
Read the book it accepts
program.schema lists each table and column that prepare reads:
program.rater.inputs lists each field the rater takes, with its allowed values.
program.rater.outputs lists each outcome that rate returns:
premium is the policy’s annual premium. Each vehicle carries a premium for each coverage.
Read the rating tables
program.rater.tables holds each rating table, with exact Decimal values.
Create a market rates a book with an edited table.
Read the example book
A library program carries an example book. program.check() rates it and compares each result with
the expected premium: