Questions tagged as 'scikit-learn'

1
answer

Show me a DeprecationWarning when trying to use cross_validation

Currently when executing the CrossValidation and GridSearch module, it shows me this error: C:\Program Files\Anaconda2\lib\site-packages\sklearn\cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of...
asked by 02.04.2017 / 23:10
1
answer

Spam filter, operation of MultinomialNB (sklearn.naive_bayes)

I have to do a spam filter in python using scikit-learn, and I do not know how the function multinomialnb.fit(x,y) works. What parameters should I put as x e y ? I have all the ham and spam data with countvectorizer...
asked by 27.01.2017 / 22:17
1
answer

ImportError: DLL load failed using sklearn

I have a Laptop with Win10 and I am working in Python3.6, and as a development environment I use PyCharm. I have installed the following packages through Pip: cycler (0.10.0) matplotlib (2.0.2) nose (1.3.7) numpy (1.13.1) pandas (0.20.3) p...
asked by 25.09.2017 / 19:30
1
answer

Error exporting "logistic_regression" in naive Bayes classifier

In this code we try to make a naybe bayes classifier and show a graph with the results. import numpy as np import matplotlib.pyplot as plt from sklearn.naive_bayes import GaussianNB from logistic_regression import plot_classifier imput_file...
asked by 04.06.2018 / 21:41
1
answer

Error passing my data to SVR and SVC

I have a problem with my code: I want to use Sklearn's SVR method but mark an error saying that 'SVR' is not a callable object when I use the SVR() function. import numpy as np from sklearn.svm import SVR This is how I use the...
asked by 05.08.2018 / 06:43