You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been doing text classification with dlib's linear tools (svm_c_linear_dcd_trainer on sparse vectors, Platt scaling, cross-validation), and the only thing I had to write myself was the TF-IDF weighting. Would you take a small tfidf_transformer for sparse vectors, in the style of vector_normalizer?
Output indices are renumbered to the kept features, so max_index_plus_one stays small for the trainers. Defaults match scikit-learn's TfidfTransformer. No tokenizing or hashing: the input is counts keyed by whatever indices the user has (word ids, or n-grams hashed with murmur_hash3).
Activity
davisking commentedon Oct 31, 2026
Sure, go for it.