Skip to content

Commit

Permalink
Rename matrix for text classification
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad committed Mar 18, 2024
1 parent 7324179 commit 887e84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/text_analysis/text_classification.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Traininsdokumente in Matrizen transformieren:
{{% customnotice code %}}
```python
X_to_classify_counts = count_vect.transform(docs_to_classify)
X_to_classify_tfidf = tf_transformer.transform(X_to_classify_counts)
X_to_classify_tf = tf_transformer.transform(X_to_classify_counts)
```
{{% /customnotice %}}

Expand All @@ -312,7 +312,7 @@ Jetzt können wir mit dieser Matrix die Klassifikation durchführen ...

{{% customnotice code %}}
```python
predicted_classes = tf_random_forest_classifier.predict(X_to_classify_tfidf)
predicted_classes = tf_random_forest_classifier.predict(X_to_classify_tf)
```
{{% /customnotice %}}

Expand Down

0 comments on commit 887e84f

Please sign in to comment.