# t3qai_client Description
a library for t3qai platform client.
The client module provides properties/functions
that links platform and client's learning/Inference algorithm.
- Provide platform path properties
- Provides functions to link learning state, set log, call learning parameter elements, load data, save learning results, and download inference results
## To install with pip
```
pip install t3qai_client
```
## How to Use (Example)
### properties
```
## train
from t3qai_client import T3QAI_TRAIN_OUTPUT_PATH, T3QAI_TRAIN_MODEL_PATH, T3QAI_TRAIN_DATA_PATH, T3QAI_MODULE_PATH
## inference
from t3qai_client import T3QAI_INIT_MODEL_PATH, T3QAI_MODULE_PATH
```
### functions
```
import t3qai_client as tc
## link learning state
tc.train_start()
tc.train_finish(result, result_msg)
## set log
# train
tc.train_set_logger()
# inference
tc.inference_set_logger()
## call learning parameter elements
# train
params = tc.train_load_param()
batch_size= int(params['batch_size'])
# inference
params = tc.inference_load_param()
batch_size= int(params['batch_size'])
## save learning results
# save the learning results inside the platform.
eval_results={}
eval_results['accuracy']= 0.93
eval_results['loss']= 0.003
tc.train_save_result_metrics(eval_results)
## To download inference results at platform (2 options -> file_obj or file_path)
from t3qai_client import DownloadFile
result = DownloadFile(file_obj=resultobj, file_name=filename)
result = DownloadFile(file_path=save_path, file_name=filename)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "t3qai-client",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": null,
"keywords": "t3q, t3qai, t3qai client, t3qai_client",
"author": "t3q",
"author_email": "lab@t3q.com",
"download_url": "https://files.pythonhosted.org/packages/ce/34/7a996efdf4956eafc23b51024f793359e7b223487c78d2f431a713b71e1b/t3qai_client-1.2.2.tar.gz",
"platform": null,
"description": "# t3qai_client Description\r\na library for t3qai platform client.\r\n\r\nThe client module provides properties/functions\r\nthat links platform and client's learning/Inference algorithm.\r\n\r\n- Provide platform path properties\r\n- Provides functions to link learning state, set log, call learning parameter elements, load data, save learning results, and download inference results\r\n\r\n## To install with pip\r\n```\r\npip install t3qai_client\r\n\r\n```\r\n\r\n## How to Use (Example)\r\n### properties\r\n```\r\n## train\r\nfrom t3qai_client import T3QAI_TRAIN_OUTPUT_PATH, T3QAI_TRAIN_MODEL_PATH, T3QAI_TRAIN_DATA_PATH, T3QAI_MODULE_PATH\r\n\r\n## inference\r\nfrom t3qai_client import T3QAI_INIT_MODEL_PATH, T3QAI_MODULE_PATH\r\n```\r\n\r\n### functions\r\n```\r\nimport t3qai_client as tc\r\n\r\n## link learning state\r\ntc.train_start()\r\ntc.train_finish(result, result_msg)\r\n\r\n## set log\r\n# train\r\ntc.train_set_logger()\r\n# inference\r\ntc.inference_set_logger()\r\n\r\n## call learning parameter elements\r\n# train\r\nparams = tc.train_load_param()\r\nbatch_size= int(params['batch_size'])\r\n# inference\r\nparams = tc.inference_load_param()\r\nbatch_size= int(params['batch_size'])\r\n\r\n## save learning results\r\n# save the learning results inside the platform.\r\neval_results={}\r\neval_results['accuracy']= 0.93\r\neval_results['loss']= 0.003\r\ntc.train_save_result_metrics(eval_results)\r\n\r\n## To download inference results at platform (2 options -> file_obj or file_path)\r\nfrom t3qai_client import DownloadFile\r\nresult = DownloadFile(file_obj=resultobj, file_name=filename)\r\nresult = DownloadFile(file_path=save_path, file_name=filename)\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": "t3qai client module",
"version": "1.2.2",
"project_urls": null,
"split_keywords": [
"t3q",
" t3qai",
" t3qai client",
" t3qai_client"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ce89993bc747aabc33c84ec5c9ab7f08510976807eb91d04a907c803d5660f10",
"md5": "2b6c8be1a44a2e9c12aad01e84ca9b10",
"sha256": "de904f3ad2fd61348f94cd93db09c3b1eb9e276257522c96cca2ccdcc8a9408a"
},
"downloads": -1,
"filename": "t3qai_client-1.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2b6c8be1a44a2e9c12aad01e84ca9b10",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 13680,
"upload_time": "2025-01-21T02:06:49",
"upload_time_iso_8601": "2025-01-21T02:06:49.269503Z",
"url": "https://files.pythonhosted.org/packages/ce/89/993bc747aabc33c84ec5c9ab7f08510976807eb91d04a907c803d5660f10/t3qai_client-1.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ce347a996efdf4956eafc23b51024f793359e7b223487c78d2f431a713b71e1b",
"md5": "25e55e4b9e4b3b1e57f8da0bdc1504fd",
"sha256": "ae0a404fb8900a0e41463667c769e5b46d96881612175c556a7bb538542fb7f6"
},
"downloads": -1,
"filename": "t3qai_client-1.2.2.tar.gz",
"has_sig": false,
"md5_digest": "25e55e4b9e4b3b1e57f8da0bdc1504fd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 12888,
"upload_time": "2025-01-21T02:06:50",
"upload_time_iso_8601": "2025-01-21T02:06:50.982435Z",
"url": "https://files.pythonhosted.org/packages/ce/34/7a996efdf4956eafc23b51024f793359e7b223487c78d2f431a713b71e1b/t3qai_client-1.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-21 02:06:50",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "t3qai-client"
}