Skip to main content

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

  1. Start the ML training server:
cd mlTrainingServer
uv run main.py
  1. 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 model
  • train(dataset_hash: str, features: List[str], target: str): Train the model
  • get_metrics() -> Dict: Get training metrics
  • download_model() -> str: Download the trained model
  • load_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

outdatedlabs-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

outdatedlabs-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file outdatedlabs-0.1.1.tar.gz.

File metadata

  • Download URL: outdatedlabs-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for outdatedlabs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a5f24dd4a137c82b5be93be37dc16ccc82615bc783b36f229762a98f913ce62a
MD5 fe2685af35b0ad3dea38b7393264754d
BLAKE2b-256 3df97ec673b1a6619835b3268bf670cd5b936052399aa98f70a77499ce6a1615

See more details on using hashes here.

File details

Details for the file outdatedlabs-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: outdatedlabs-0.1.1-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.2

File hashes

Hashes for outdatedlabs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1740a413982aa8dabe9ce505495a9b49004fddc428a6e8e48525ac3f37a9b29
MD5 d4a5b46945b525fd57624cc0c857bba4
BLAKE2b-256 c09b8d4d6129b6c096655c1b7586e9ed0ef1c1d484abb3546d45c57ca97832a2

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