skorch-dev/skorch

A scikit-learn compatible neural network library that wraps PyTorch

What it solves

Skorch bridges the gap between PyTorch and scikit-learn, allowing developers to use PyTorch neural networks seamlessly within standard scikit-learn workflows like pipelines and grid searches.

How it works

It wraps PyTorch modules in a scikit-learn compatible classifier interface (NeuralNetClassifier). This lets you train, predict, and evaluate PyTorch models using familiar scikit-learn methods while integrating extra utilities like learning rate schedulers, early stopping, and checkpointing.

Who it’s for

It is designed for machine learning practitioners and developers who want to combine the deep learning flexibility of PyTorch with the convenient tooling and orchestration of scikit-learn.

Highlights

  • Scikit-learn compatibility for PyTorch neural network modules
  • Seamless integration with scikit-learn Pipelines and GridSearchCV
  • Built-in callbacks for learning rate schedulers, early stopping, and checkpointing
  • Support for parameter freezing and unfreezing
  • Integrations with Hugging Face and GPyTorch for Gaussian Processes

Related

  • Project
  • Project
  • Project
  • Project
  • Project