Metalearning Library (metalearning_class)
A Python client library for meta-learning, designed to interface with the Panaceia/Sofon Meta-Learning Platform.
This library focuses on developing advanced machine learning techniques that "learn how to learn." It provides a robust, extensible framework for building meta-learning models leveraging neural networks and transformer architectures to solve complex regression and classification challenges efficiently.
🚀 Features
- Meta-Learning Development: Facilitates the creation and rapid experimentation of meta-learning algorithms.
- Key Components: Provides implementations for essential meta-learning components such as meta-learners and task encoders.
- Flexible Architectures: Supports diverse applications, from standard deep neural networks to custom Transformers and Robust RNNs.
- Platform Integration: Automatically synchronizes local model architectures, weights, and telemetry with the Sofon backend.
📦 Installation
To install the library, run the following command (requires Python 3.8+):
pip install metalearning_class
🛠️ Quick Start
Below is a basic workflow demonstrating how to initialize the client, authenticate, load data, and start working on a Sofon challenge.
import os
import metalearning_class as mtl
from dotenv import load_dotenv
# Load environment variables (.env)
load_dotenv()
# 1. Initialize the metalearning client
# Set gpu=True if you have a CUDA-compatible GPU configured
ml = mtl.Metalearning(gpu=False)
# 2. Login securely with your Sofon account
ml.login(os.getenv("SOFON_USERNAME"), os.getenv("SOFON_PASSWORD"))
# 3. Subscribe to a challenge and download the dataset
train_data = ml.subscribe_and_get_task("challenge_taskname")
# 4. Build and train your topology
# (Implementation depends on the specific challenge and architecture)
# ...
⚠️ Important Considerations
- Authentication Dependency: The library requires active communication with the Sofon backend. Most data retrieval and submission workflows will fail if you skip the
ml.login()step. - Data Types: Always cast your Pandas DataFrame features to
numpy.float32arrays before passing them to the training or inference pipelines to ensure compatibility with underlying TensorFlow operations. - Mandatory Tracking: Ensure required tracking methods (like
subscribe_and_get_taskand setting topology names) are executed before attempting to define models or run predictions to avoid missing metadata errors.
📝 Recent Updates
v0.1.9 (2026-06-04)
- Added native support for base64-encoded and gzip-compressed backend training data payloads. Directly converts to Pandas DataFrame to optimize performance and reduce memory consumption.
v0.1.8 (2026-05-19)
- Standardized
load_test_inputpreprocessing and input formatting with the training data pipeline.
(For a full history of changes, see the CHANGELOG.md file.)
🤝 Contributing
We will be transitioning to open-source soon and look forward to welcoming contributions to the Metalearning Library!
© 2026 Panaceia – All Rights Reserved
Metadata
Release files for metalearning-class 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| metalearning_class-0.1.9.tar.gz | 34.5 kB | Without provenance | Details for metalearning_class-0.1.9.tar.gz |
Release files / metalearning_class-0.1.9.tar.gz
| Download URL | metalearning_class-0.1.9.tar.gz |
|---|---|
| Size | 34.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2cedea859d6e2ab6a46b7eee1bd3661f370ebc7e45910bfe62df5d64ecf577a
|
|
BLAKE2b-256 checksum How to use checksums |
162c7bdd987cf74810bd3131071e57be85010e1f6859e34ddfea92b6bd5db5a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for metalearning-class 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.