Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c656b10

Browse files
committed
BUG fix broken grid search example
1 parent 5cde50c commit c656b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/grid_search_text_feature_extraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
# increase processing time in a combinatorial way
9595
'vect__max_df': (0.5, 0.75, 1.0),
9696
#'vect__max_features': (None, 5000, 10000, 50000),
97-
'vect__max_n': (1, 2), # words or bigrams
97+
'vect__ngram_range': ((1, 1), (1, 2)), # unigrams or bigrams
9898
#'tfidf__use_idf': (True, False),
9999
#'tfidf__norm': ('l1', 'l2'),
100100
'clf__alpha': (0.00001, 0.000001),

0 commit comments

Comments
 (0)