comments bug
This commit is contained in:
parent
b2aa2df0f7
commit
c87a85b818
|
@ -30,6 +30,8 @@ class MultinomialNaiveBayes:
|
||||||
|
|
||||||
y = dataset['Label']
|
y = dataset['Label']
|
||||||
print(y[:12])
|
print(y[:12])
|
||||||
|
|
||||||
|
# bis hierhin stimmt noch alles...
|
||||||
|
|
||||||
if sklearn_cv:
|
if sklearn_cv:
|
||||||
cv = CountVectorizer()
|
cv = CountVectorizer()
|
||||||
|
@ -62,6 +64,9 @@ class MultinomialNaiveBayes:
|
||||||
# use sklearn CountVectorizer
|
# use sklearn CountVectorizer
|
||||||
# fit the training data and then return the matrix
|
# fit the training data and then return the matrix
|
||||||
print('Title + Text von train')
|
print('Title + Text von train')
|
||||||
|
|
||||||
|
# aber ab hier stimmt was nicht. irgendwie rutschen da NaNs mit rein...
|
||||||
|
|
||||||
print(X[train])
|
print(X[train])
|
||||||
|
|
||||||
print('Label von train')
|
print('Label von train')
|
||||||
|
|
Loading…
Reference in New Issue