MCPcopy Create free account
hub / github.com/Derive-Risk/pyfair / setUp

Method setUp

tests/model/test_meta_model.py:18–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 _META_MODEL_JSON = '{ "Regular Model 1": { "Loss Event Frequency": { "low": 20, "mode": 100, "high": 900, "gamma":4 }, "Loss Magnitude": { "low": 3000000, "mode": 3500000, "high": 5000000, "gamma":4 }, "name": "Regular Model 1", "n_simulations": 10000, "random_seed": 42, "model_uuid": "b6c6c968-a03c-11e9-a5db-f26e0bbd6dbc", "type": "FairModel", "creation_date": "2019-07-06 17:23:43.647370" }, "Regular Model 2": { "Loss Event Frequency": { "mean": 0.3, "stdev": 0.1 }, "Loss Magnitude": { "low": 2000000000, "mode": 3000000000, "high": 5000000000, "gamma":4 }, "name": "Regular Model 2", "n_simulations": 10000, "random_seed": 42, "model_uuid": "b6ca98a4-a03c-11e9-8ce0-f26e0bbd6dbc", "type": "FairModel", "creation_date": "2019-07-06 17:23:43.672336" }, "name": "My Meta Model!", "model_uuid": "b6cce298-a03c-11e9-b79f-f26e0bbd6dbc", "creation_date": "2019-07-06 17:23:43.687336", "type": "FairMetaModel" }'
17
18 def setUp(self):
19 # Static method instantiation
20 self._meta = FairMetaModel.read_json(self._META_MODEL_JSON)
21
22 def tearDown(self):
23 self._meta = None

Callers

nothing calls this directly

Calls 1

read_jsonMethod · 0.45

Tested by

no test coverage detected