A secure package for training machine learning models
Project description
OutDatedLabs - Secure Machine Learning Training Package
A Python package for secure machine learning model training using the ML training server.
Installation
pip install outdatedLabs
Quick Start
from outdatedLabs import SecureModel
# Create a linear regression model
model = SecureModel.linearRegression()
# Optionally set a custom server URL
model.set_server_url("http://your-server:8000")
# Train the model
model.fit(
dataset_hash="your_dataset_hash",
features=["feature1", "feature2"],
target="target_column"
)
# Make predictions
predictions = model.predict(X)
# Get training metrics
metrics = model.get_metrics()
print(metrics)
Features
- Secure model training using encrypted datasets
- Support for linear regression models
- Progress tracking with tqdm
- Comprehensive error handling and logging
- Easy-to-use interface
- Configurable server URL
API Reference
SecureModel
The main class for secure model training.
Methods
-
linearRegression(server_url: str = "http://localhost:8000") -> SecureModel- Create a new linear regression model instance
-
set_server_url(server_url: str) -> SecureModel- Set a custom URL for the ML training server
-
fit(dataset_hash: str, features: List[str] = None, target: str = None, params: Dict[str, Any] = None) -> SecureModel- Train the model using the specified dataset
-
predict(X: Union[pd.DataFrame, List[List[float]]]) -> List[float]- Make predictions using the trained model
-
score(X: Union[pd.DataFrame, List[List[float]]], y: List[float]) -> Dict[str, float]- Calculate model performance metrics
-
get_metrics() -> Dict[str, Any]- Get training metrics
Requirements
- Python 3.7+
- requests
- joblib
- pandas
- scikit-learn
- tqdm
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.0.tar.gz.
File metadata
- Download URL: outdatedlabs-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53513e13e4f3048eb365e5353fcee550f52a380586459e63475200ce21a688d8
|
|
| MD5 |
2353c03e10fb44c91ea3f708f72ca9a3
|
|
| BLAKE2b-256 |
03183d7b32550d2f95bd16194cfd383275ebb02165e7d1f8a4199c375b60ae5b
|
File details
Details for the file outdatedlabs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: outdatedlabs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 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 |
2d836b16fe6f427fe313cd8382cb3444c89a9ff46622273939622ca70fe94286
|
|
| MD5 |
e0ee01c197524d21c43dfd1c99bd2281
|
|
| BLAKE2b-256 |
eb56d3914ac0c05ccba671ae0977acde70fe9bdbfbee23265215617594948198
|