thinc

Functional deep learning library with NumPy and PyTorch integration

pipmacoslinuxwindows
Try with needOr install directly
Source

About

A refreshing functional take on deep learning, compatible with your favorite libraries

Examples

install thinc for machine learning projects$ pip install thinc
build neural network layers with functional API$ python -c "from thinc.api import chain, with_array; model = chain(Dense(10), Relu(), Dense(5))"
train deep learning model with NumPy arrays$ python -c "from thinc.api import Model; model.initialize(X=train_data); predictions = model.predict(test_data)"
use PyTorch layers inside Thinc models$ python -c "from thinc.layers import PyTorchWrapper; wrapped = PyTorchWrapper(pytorch_layer)"
check installed thinc version and dependencies$ python -c "import thinc; print(thinc.__version__)"