Skip to main content

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

ldmlogger-0.0.8.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

ldmlogger-0.0.8-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page