MCPcopy
hub / github.com/facebook/prophet / model_from_json

Function model_from_json

python/prophet/serialize.py:205–219  ·  view source on GitHub ↗

Deserialize a Prophet model from json string. Deserializes models that were serialized with model_to_json. Parameters ---------- model_json: Serialized model string Returns ------- Prophet model.

(model_json)

Source from the content-addressed store, hash-verified

203
204
205def model_from_json(model_json):
206 """Deserialize a Prophet model from json string.
207
208 Deserializes models that were serialized with model_to_json.
209
210 Parameters
211 ----------
212 model_json: Serialized model string
213
214 Returns
215 -------
216 Prophet model.
217 """
218 model_dict = json.loads(model_json)
219 return model_from_dict(model_dict)

Callers 3

test_simple_serializeMethod · 0.90
test_full_serializeMethod · 0.90

Calls 1

model_from_dictFunction · 0.85

Tested by 3

test_simple_serializeMethod · 0.72
test_full_serializeMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…