Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions model2vec/train/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ def fit(
:param device: The device to train on. If this is "auto", the device is chosen automatically.
:param X_val: The texts to be used for validation.
:param y_val: The labels to be used for validation.
:param class_weight: The weight of the classes. If None, all classes are weighted equally. Must
have the same length as the number of classes.
:param class_weight: The weight of the classes. If None, all classes are weighted equally.
If "balanced", weights are computed as the inverse class frequency.
If a dict, it must map each class to its weight.
:param validation_steps: The number of steps to run validation for. If None, validation steps are estimated from the data.
:param random_seed: The random seed to use. Defaults to 42.
:return: The fitted model.
Expand Down
Loading