A secure package for training machine learning models
Project description
OutdatedLabs - Secure Machine Learning Training Package
A secure and easy-to-use package for training machine learning models with remote server support.
Installation
pip install outdatedLabs
Quick Start
Use the package in your code:
from outdatedLabs import SecureModel
# Create a linear regression model
model = SecureModel.linearRegression()
# Train the model
model.train(
dataset_hash="your_dataset_hash",
features=["feature1", "feature2"],
target="target_column"
)
# Get training metrics
metrics = model.get_metrics()
print(metrics)
# Download and load the trained model
model.download_model()
loaded_model = model.load_model()
Features
- Secure model training with remote server support
- Automatic dataset download and cleanup
- Progress tracking with tqdm
- Comprehensive error handling
- Detailed logging
- Support for multiple algorithms (currently Linear Regression)
Configuration
The package connects to a local ML training server by default at http://localhost:3000. You can change the server URL when creating a model:
model = SecureModel.linearRegression(server_url="http://your-server:3000")
API Reference
SecureModel
The main class for model training and management.
Methods
linearRegression(server_url: str = "http://localhost:3000"): Create a Linear Regression modeltrain(dataset_hash: str, features: List[str], target: str): Train the modelget_metrics() -> Dict: Get training metricsdownload_model() -> str: Download the trained modelload_model() -> Any: Load the trained model
License
MIT License
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
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 outdatedlabs-0.1.3.tar.gz.
File metadata
- Download URL: outdatedlabs-0.1.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34d7fbe28c063a21d4db5438c32f34f3871705a7884db135d6f70d3a767f6ad9
|
|
| MD5 |
4887b312ccc6f1e16a2e48523a336eab
|
|
| BLAKE2b-256 |
67a3e325acb2e01a263bae708edb72709c19479d5a83ae210b1e0998a7214d35
|
File details
Details for the file outdatedlabs-0.1.3-py3-none-any.whl.
File metadata
- Download URL: outdatedlabs-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9db7416db9513cb9dea807108ee432d8879520d387b3c5ea542e4054cf9af6c6
|
|
| MD5 |
07d60becab3144d2d23022ae0c93861c
|
|
| BLAKE2b-256 |
48d411e11d887c4d22073d8da9817e0840450dcc8f18aef162a5a93760c4d9d8
|