parameters loader signelton
Project description
paramspy
container for global (Singelton) loading and saving parameters
Usage example
On load, need to be called once:
Params(LOCATION_OF_PARMAS_JSON)
On usage, after calling the above
param_dict=Params()
params.json
is a nested parameters json, e.g.;
{
"data": {
"granularity": 21600,
"header": [
"d_price"
],
"look_back": 42,
"mean": 6.477538237436277,
"n_test": 64,
"std": 257.3105989979195,
"time_decay_sec": 3000000,
"weight_bias": 0.1
},
"data_collection": {
"n_record_per_fetch": 280,
"time_span_days": 20000
},
"logging": {
"model_folder": "models",
"output_folder": "logdir",
"plot_every": 32
},
"train": {
"batch_size": 6400,
"learn_rate": 0.0001,
"n_epochs": 60000
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
globalparams-1.0.2.tar.gz
(14.8 kB
view details)
File details
Details for the file globalparams-1.0.2.tar.gz
.
File metadata
- Download URL: globalparams-1.0.2.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fbe1d108efaeb2a06b8a588c62fc704969496a9082162d6a794970bb225e46e |
|
MD5 | 2a26fe833b27522bd2ce4b38e69c2efe |
|
BLAKE2b-256 | 59181be05c6e17168cf5da26855306334d229025a64db83f276e549e5229b0e3 |