I am trying Naive Bayes classification on my dataset for ML project. I am getting: “ TypeError: __init__() got an unexpected keyword argument 'n' ”

前端 未结 0 447
Happy的楠姐
Happy的楠姐 2021-01-02 23:22

Here is the code:

from sklearn.model_selection import KFold

def classify(training_tweets, test_tweets, ngram=(1, 1)):
    
    k_fold = KFold(n=len(training_         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题