Created
          January 16, 2022 14:51 
        
      - 
      
- 
        Save varrek/db2cc079652100bdefe9061e9a59bf2b to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | logreg = Pipeline(steps=[("vectorizer", TfidfVectorizer(max_df=MAX_DF, | |
| min_df=MIN_DF, | |
| stop_words=russian_stopwords, | |
| token_pattern=u'(?ui)\\b\\w*[а-я]+\\w*\\b')), | |
| ("log_reg", LogisticRegression(n_jobs=N_JOBS, | |
| solver="saga", | |
| multi_class="multinomial", | |
| random_state=100500)) | |
| ], | |
| verbose=True) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment