Skip to main content

A set of tools for the lesson on basics (LLM Course)

Project description

Tools Basics

A Python library providing basic tools for data handling and visualization.

Features

  • DataHandler: Load and manage datasets from Hugging Face
  • Visualizer: Create visualizations using matplotlib and bokeh
  • Helpers: Utility functions for configuration and data saving

Installation

pip install tools_basics

Usage

from tools_basics.data_handler import DataHandler
from tools_basics.visualizer import Visualizer
from tools_basics.helpers import get_config

# Load configuration
config = get_config("path/to/config.yaml")

# Initialize data handler and load data
data_handler = DataHandler(config)
train_df, test_df = data_handler.get_data()

# Visualize data
Visualizer.pretty_sample(train_df)
Visualizer.plot_series([train_df['text'].str.len()], ['Train Text Length'])

Requirements

  • Python 3.10+
  • pandas
  • numpy
  • matplotlib
  • datasets
  • omegaconf
  • tabulate
  • bokeh

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

tools_basics-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tools_basics-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file tools_basics-0.1.0.tar.gz.

File metadata

  • Download URL: tools_basics-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for tools_basics-0.1.0.tar.gz
Algorithm Hash digest
SHA256 12c73e9261b9a78b4ba715eb6333f5a29c09f7adf0cafc1b74b869ad05b0b9c1
MD5 22b2bdaf5d396607447e9924b4b1a67d
BLAKE2b-256 dd596976ffd873f322036259ea612afaa4b6854f9616f4f0847b81cbce2b4b98

See more details on using hashes here.

File details

Details for the file tools_basics-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tools_basics-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for tools_basics-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab2480ba2ba0010565a889ae52865b2a6f6c03cb531d25db7ba5370b4cb9883
MD5 e6d847f9406b9278ff4357fa71d9570b
BLAKE2b-256 a31866637932f7fed628efd27649fe154cf4a135050629861b52c6ab0dad6e96

See more details on using hashes here.

Supported by

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