A Python package for semi-supervised learning with scikit-learn
Project description
Semi-Supervised Learning Library (sslearn)
The sslearn
library is a Python package for machine learning over Semi-supervised datasets. It is an extension of scikit-learn.
Installation
Dependencies
- joblib >= 1.2.0
- numpy >= 1.23.3
- pandas >= 1.4.3
- scikit_learn >= 1.2.0
- scipy >= 1.10.1
- statsmodels >= 0.13.2
- pytest = 7.2.0 (only for testing)
pip
installation
It can be installed using Pypi:
pip install sslearn
Code example
from sslearn.wrapper import TriTraining
from sslearn.model_selection import artificial_ssl_dataset
from sklearn.datasets import load_iris
X, y = load_iris(return_X_y=True)
X, y, X_unlabel, true_label = artificial_ssl_dataset(X, y, label_rate=0.1)
model = TriTraining().fit(X, y)
model.score(X_unlabel, true_label)
Citing
@software{jose_luis_garrido_labrador_2024_10623889,
author = {José Luis Garrido-Labrador},
title = {jlgarridol/sslearn: v1.0.4},
month = feb,
year = 2024,
publisher = {Zenodo},
version = {1.0.4},
doi = {10.5281/zenodo.10623889},
url = {https://doi.org/10.5281/zenodo.10623889}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sslearn-1.0.4.1.tar.gz
(36.4 kB
view hashes)
Built Distribution
sslearn-1.0.4.1-py3-none-any.whl
(38.3 kB
view hashes)
Close
Hashes for sslearn-1.0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a770bcfe7c8b62d46cd94d42171479a9d401fbf650fe4e16abe4c6a7a1b51906 |
|
MD5 | 8a795814ceef5b932cde9a7d7b9b432d |
|
BLAKE2b-256 | 503023c7913ec72a18a591ce9de055d4568cad69043960c59970159261edc104 |