Socket
Socket
Sign inDemoInstall

sslearn

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sslearn

A Python package for semi-supervised learning with scikit-learn


Maintainers
1

Semi-Supervised Learning Library (sslearn)

Code Climate maintainability Code Climate coverage GitHub Workflow Status PyPI - Version Static Badge

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{garrido2024sslearn,
  author       = {José Luis Garrido-Labrador},
  title        = {jlgarridol/sslearn},
  month        = feb,
  year         = 2024,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.7565221},
}

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc