📦 lib-ml-REMLA10-2024
📝 Overview
lib-ml-REMLA10-2024 provides essential functions for preprocessing and postprocessing data in machine learning projects. It includes utilities for data splitting, preprocessing, and evaluation.
🛠️ Installation
Note: Python 3.11 is required for this library!
Using Poetry
Inside your Python 3.11 virtual environment, run:
bashCopy code
poetry add lib-ml-REMLA10-2024
Using pip
Alternatively, you can install the package with pip:
bashCopy code
pip install lib-ml-REMLA10-2024
📚 Usage
Importing the Library
You can import the necessary functions in your Python modules:
pythonCopy code
from lib_ml_remla import preprocess_data, split_data
Usage examples
🔄 Preprocessing Data
pythonCopy code
from lib_ml_remla import preprocess_data, split_data
# Example data
train_data = ["1\tThis is a sample training sentence.", "0\tAnother training example."]
test_data = ["1\tThis is a sample test sentence."]
val_data = ["0\tThis is a sample validation sentence."]
# Split data
raw_X_train, raw_y_train, raw_X_val, raw_y_val, raw_X_test, raw_y_test = split_data(train_data, test_data, val_data)
# Preprocess data
X_train, y_train, X_val, y_val, X_test, y_test, char_index, tokenizer, encoder = preprocess_data(
raw_X_train, raw_y_train, raw_X_val, raw_y_val, raw_X_test, raw_y_test
)
📈 Evaluating Results
pythonCopy code
from lib_ml_remla import predict_classes, evaluate_results
from keras.models import load_model
from sklearn.preprocessing import LabelEncoder
# Load your trained model
model = load_model('path_to_your_model')
# Predict classes
labels, probabilities = predict_classes(model, encoder, X_test)
# Evaluate results
results = evaluate_results(y_test, labels)
print(results)
🛡 License
This project is licensed under the terms of the MIT license. See LICENSE for more details.
Metadata
Release files for lib-ml-REMLA10-2024 1.0.2
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 | |
|---|---|---|---|---|
| lib_ml_remla10_2024-1.0.2.tar.gz | 5.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lib_ml_remla10_2024-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / lib_ml_remla10_2024-1.0.2.tar.gz
| Download URL | lib_ml_remla10_2024-1.0.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7e729c26d513749ad00fd54203fc06cfd47ecabaf9ca2545064ff550f25b3c6
|
|
BLAKE2b-256 checksum How to use checksums |
4ec8b7161d1e490a60f46cdae7473381e3831d713393a7dc18e5fe499faad45b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1022-azure
|
Release files / lib_ml_remla10_2024-1.0.2-py3-none-any.whl
| Download URL | lib_ml_remla10_2024-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03ac26c83e090346b8e2a26411572091c825cdfe85b57ee1f751d1b23d1f5561
|
|
BLAKE2b-256 checksum How to use checksums |
d8ea54fcbe9c7bed0bf0ee768ef11d6036eaf025f1b6c4ffb94a2350e90be3ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1022-azure
|
Security for lib-ml-REMLA10-2024 1.0.2
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.