Installation
To train, make sure you install the training extra:Training a Classifier
Model2Vec supports training simple classifiers on top of static models. These models are extremely lightweight and can be trained on a CPU.Initializing a Classifier
To initialize a classifier, you can use theClassifier
class. This class allows you to create a lightweight model that can be trained on your data. We support both single- and multi-label classification, which work seamlessly based on the labels you provide.