# 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
}
}
```
<!---
deploy
```
python setup.py sdist
twine upload dist/*
```
-->
Raw data
{
"_id": null,
"home_page": "https://github.com/ohadmen/paramspy",
"name": "globalparams",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "parameters,storage",
"author": "Ohad Menashe",
"author_email": "ohad.men@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/59/18/1be05c6e17168cf5da26855306334d229025a64db83f276e549e5229b0e3/globalparams-1.0.2.tar.gz",
"platform": null,
"description": "# paramspy\ncontainer for global (Singelton) loading and saving parameters\n\n## Usage example\nOn load, need to be called once:\n```\nParams(LOCATION_OF_PARMAS_JSON)\n```\nOn usage, after calling the above\n```\nparam_dict=Params()\n```\n\n`params.json` is a nested parameters json, e.g.;\n```\n{\n \"data\": {\n \"granularity\": 21600,\n \"header\": [\n \"d_price\"\n ],\n \"look_back\": 42,\n \"mean\": 6.477538237436277,\n \"n_test\": 64,\n \"std\": 257.3105989979195,\n \"time_decay_sec\": 3000000,\n \"weight_bias\": 0.1\n },\n \"data_collection\": {\n \"n_record_per_fetch\": 280,\n \"time_span_days\": 20000\n },\n \"logging\": {\n \"model_folder\": \"models\",\n \"output_folder\": \"logdir\",\n \"plot_every\": 32\n },\n \"train\": {\n \"batch_size\": 6400,\n \"learn_rate\": 0.0001,\n \"n_epochs\": 60000\n }\n}\n\n```\n\n<!---\ndeploy\n```\npython setup.py sdist\ntwine upload dist/*\n```\n-->\n\n\n\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "parameters loader signelton",
"version": "1.0.2",
"project_urls": {
"Homepage": "https://github.com/ohadmen/paramspy"
},
"split_keywords": [
"parameters",
"storage"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "59181be05c6e17168cf5da26855306334d229025a64db83f276e549e5229b0e3",
"md5": "2a26fe833b27522bd2ce4b38e69c2efe",
"sha256": "2fbe1d108efaeb2a06b8a588c62fc704969496a9082162d6a794970bb225e46e"
},
"downloads": -1,
"filename": "globalparams-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "2a26fe833b27522bd2ce4b38e69c2efe",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 14828,
"upload_time": "2024-01-28T21:34:02",
"upload_time_iso_8601": "2024-01-28T21:34:02.251771Z",
"url": "https://files.pythonhosted.org/packages/59/18/1be05c6e17168cf5da26855306334d229025a64db83f276e549e5229b0e3/globalparams-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-28 21:34:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ohadmen",
"github_project": "paramspy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "globalparams"
}