3.1.1.6.1.2. etfl.io.json¶
JSON serialization
3.1.1.6.1.2.1. Module Contents¶
3.1.1.6.1.2.1.1. Functions¶
|
Saves the model as a JSON file |
|
Loads a model from a JSON file |
|
Returns a JSON dump as a string |
|
Loads a model from a string JSON dump |
- etfl.save_json_model(model, filepath)¶
Saves the model as a JSON file
- Parameters
model –
filepath –
- Returns
- etfl.load_json_model(filepath, solver=None)¶
Loads a model from a JSON file
- Parameters
filepath –
solver –
- Returns
- etfl.json_dumps_model(model)¶
Returns a JSON dump as a string
- Parameters
model –
- Returns
- etfl.json_loads_model(s)¶
Loads a model from a string JSON dump
- Parameters
s – JSON string
- Returns