Python client side functions for working with LDM framework.
Project description
LDMLogger
Class LDMLogger contains methods for working with LDM framework.
Methods:
def init(self, user_token, project_id=None, server_url="http://localhost:5000", root_dir=Path(os.getcwd()).parent, should_upload_sources = False)
Creates new instance of class LDMLogger
def start_run(self, comment = "", git_commit_url = "" ):
Starts a new run
def log(self, body):
Logs message msg to server.
def finish_run(self):
Finish the current run.
def validate(self, results, dataset_type="Train"):
Validate on dataset.
def upload_file(self, file_name, comment = ""):
Uploads file (file_name) to the logging server and attaches it to the current run.
def add_project(self, name, project_type, description=""):
Adding project.
def upload_dataset(self, path_to_dataset,dataset_type_in="Train"):
Uploads dataset to server.
def upload_sources(self):
Creates a .zip of root_dir and uploads it to the LDM server.
def download_dataset(self, path="", dataset_type_in="Train"):
Downloads dataset from server.
def save_colab_notebook_history_to_file(self, file_name):
Creates new notebook containing history of all executed cells of the current notebook.
Change log
[0.0.1] - 2020-12-09
[0.0.3] - 2021-02-10
[0.0.4] - 2021-02-12
Added
- Functions for
- dataset upload
- dataset download
- project creation
- result validation on a specific dataset
Changed
- changed package structure (only one package (logger) is uploaded)
- removed all examples from package logger
- class LDMLogger has package visibility
Removed
[0.0.6] - 2021-02-17
Changed
- start_run does not upload sources by default
[0.0.7] - 2021-03-19
Added
- Function to save notebook
[0.0.8] - 2021-03-20
Removed
N/A
Changed
- Updated readme and docs
Added
N/A
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ldm_python_client_lib-0.0.8.tar.gz
.
File metadata
- Download URL: ldm_python_client_lib-0.0.8.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a013b5c50a62c5062d27dc4a7a51c5c3f7f578d15a94af7367c844af574f3c8b |
|
MD5 | 25e11ab0a6429da9629dd5ece2647fa0 |
|
BLAKE2b-256 | b1aae9f41b29bbdffca771a9e31bf05ccb59561593627fc1b382eeb80f54489b |
File details
Details for the file ldm_python_client_lib-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: ldm_python_client_lib-0.0.8-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ff22ac2318b1ee1e7be745a7f6f2a4fbfeb39180a1736f939b063281e909dea |
|
MD5 | 47ce1433f08e0e21109050dfa568cf87 |
|
BLAKE2b-256 | c91841edf45fd3df2555347f99caaa0025d3a41f7aca66cebbdb4bbab84e1424 |