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
jeshraghian/snntorchsnnTorch is a Python library that enables the training of spiking neural networks within the PyTorch framework, allowing users to leverage GPU acceleration for brain-inspired, energy-efficient machine learning models.
- Project
norse/norseNorse is a PyTorch‑based library that adds spiking neural‑network primitives (LIF, LSNN, etc.) for building, training, and evaluating event‑driven models. It offers pip/conda/Docker installation, ready‑made example tasks (MNIST, CIFAR‑10, cart‑pole), and integrates with PyTorch‑Lightning for scalable training.
- Project
galilai-group/stable-pretrainingstable‑pretraining is a PyTorch‑Lightning (and experimental JAX) library that lets you plug‑in self‑supervised learning methods by defining only a forward function. It handles data loading (with optional GPU‑side augmentations), checkpointing, multi‑GPU training, and a rich set of online evaluation callbacks, making SSL research faster and more reproducible.
- Project
LukeDitria/pytorch_tutorialsA collection of beginner-friendly PyTorch tutorials that assume basic Python and some deep learning knowledge, walking through implementations from basic ML algorithms to CNNs, autoencoders, reinforcement learning, and attention/transformers. Includes skeleton code, solutions, and companion YouTube videos.
- Project
KevinMusgrave/pytorch-metric-learningA PyTorch library providing composable losses, miners, distances, and regularizers to train embedding models for tasks like retrieval, clustering, and recognition.