Skip to main content

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

Release files for ldm-python-client-lib 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ldm-python-client-lib 0.0.8
File Size Uploaded
ldm_python_client_lib-0.0.8.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ldm-python-client-lib 0.0.8
File Interpreter ABI Platform
ldm_python_client_lib-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / ldm_python_client_lib-0.0.8.tar.gz

Download URL ldm_python_client_lib-0.0.8.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a013b5c50a62c5062d27dc4a7a51c5c3f7f578d15a94af7367c844af574f3c8b
BLAKE2b-256 checksum
How to use checksums
b1aae9f41b29bbdffca771a9e31bf05ccb59561593627fc1b382eeb80f54489b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ldm_python_client_lib-0.0.8-py3-none-any.whl

Download URL ldm_python_client_lib-0.0.8-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ff22ac2318b1ee1e7be745a7f6f2a4fbfeb39180a1736f939b063281e909dea
BLAKE2b-256 checksum
How to use checksums
c91841edf45fd3df2555347f99caaa0025d3a41f7aca66cebbdb4bbab84e1424
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page