My custom scripts
Project description
iragca
My library of custom python scripts and configurations
iragca-python is a comprehensive Python library providing practical utilities for data science, machine learning, and visualization workflows. It streamlines common tasks in machine learning, data visualization, and functional programming.
Key Features
- Accessible Visualization: Professional matplotlib styles and WCAG-compliant color palettes designed for clarity and accessibility.
- Lightweight Experiment Tracking:
RunLoggerfor logging metrics with dynamic property access and optional progress bars. - Functional Programming Utilities: Composable data transformation pipelines using
PipelineandStep. - Deprecation Management: Tools to manage deprecations and guide users to alternatives.
Use Cases
- ML/DL Training: Track metrics with
RunLoggerduring training loops - Data Pipelines: Build readable transformation chains with
Pipeline - Publication Plots: Create accessible visualizations with pre-configured styles
- Library Maintenance: Manage deprecations gracefully with proper warnings
Installation
Install using pip:
pip install iragca
Install a specific module (see the docs for options):
pip install iragca[functional]
Quick Start
RunLogger
from iragca.ml import RunLogger
logger = RunLogger(max_steps=100, display_progress=True)
for epoch in range(100):
loss = 1.0 / (epoch + 1)
logger.log_metrics({'loss': loss}, step=epoch)
print(f"Final loss: {logger.loss[-1]}")
Matplotlib Colors and Styles
import matplotlib.pyplot as plt
from iragca.matplotlib import Color, Styles
plt.style.use(Styles.CMR10.value)
sample_data = [1, 3, 2, 4, 3, 5]
plt.plot(sample_data, color=Color.BLUE.value)
plt.title("Sample Plot with Custom Style and Color")
plt.xlabel("X-axis")
plt.ylabel("Y-axis")
plt.show()
Functional Pipelines
from iragca.functional import Pipeline, Step
pipeline = Pipeline([
lambda x: x * 2,
Step(lambda x, n: x + n, n=10),
lambda x: x ** 2,
])
result = pipeline(5) # (5 * 2 + 10)^2 = 400
Documentation
Read the full documentation in the docs or visit the API reference.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iragca-0.4.2.tar.gz.
File metadata
- Download URL: iragca-0.4.2.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1418de49cf457feddd3127922a811381a7cd9c53a0b3a3ce4f4a95c48ec83405
|
|
| MD5 |
52e154908d873c396fea3a1870ff8e90
|
|
| BLAKE2b-256 |
e0ef42e08455086c6d8b3b8bb64bd5ad66b4865dfc9a33da6c3e8a655820d5e2
|
File details
Details for the file iragca-0.4.2-py3-none-any.whl.
File metadata
- Download URL: iragca-0.4.2-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
989d35002bb8f8e211bb84ab965cf78dc8b0dbf23c8a9d9bb19a3f815fab3ae6
|
|
| MD5 |
2145f545ee80b74f614796fcc9b241c8
|
|
| BLAKE2b-256 |
e577f22b4e2f32b7a98fe1c02a1e1c62cbf84ee990aececba6e6d63d6889e71f
|