Use the supported sparse matrix conversion in the deployment example

This commit is contained in:
Andras Schmelczer 2026-10-27 20:05:45 +00:00
commit 0b676ddc7c

View file

@ -108,7 +108,7 @@
" for weight, word, count in zip(\n",
" model.named_steps[\"classifier\"].feature_log_prob_[class_index],\n",
" model.named_steps[\"vectorizer\"].get_feature_names_out(),\n",
" features.A[0],\n",
" features.toarray()[0],\n",
" )\n",
" if count > 0\n",
" ),\n",