The World’s Largest Online Community for Developers
';
Newest 'scikit-learn' Questions - LavOzs.Com
Questions tagged [scikit-learn]
scikit-learn is a machine-learning library for Python that provides simple and efficient tools for data analysis and data mining, with a focus on machine learning. It is accessible to everybody and reusable in various contexts. It is built on NumPy and SciPy. The project is open source and commercially usable (BSD license).
This question is about creating a K-nearest neighbor graph [KNNG] from a dataset with an unknown number of centroids (which is not the same as K-means clustering).
Suppose that you have a dataset of ...
I am trying to classify a small dataset (around 10000 records) into two classes. I used various methods like DT, Naive Bayes and k-nn classifier. Now, I would like to set the results from one of the ...
I am trying to predict car prices with a multivariate polynomial regression with 2-degrees.
This is my code:
from sklearn.preprocessing import PolynomialFeatures
from sklearn import linear_model
...
Are sklearn transformers suitable to transform an input image into some transformed output including additional information? For example, is it possible to apply Hough Circle transform to an image ...
I extracted the top 5 tags from an imagenet model for images in 100 classes I have to train. Now trying to train an XGBoost classifier on the text tags. Here is what I have:
vect = TfidfVectorizer(...
I saved and pickled an object in Python2.
The object of the type is RandomForestClassifier of sklearn.
I am trying to unpickle it in Python3 but I get an error:
with open(model_name, "rb") as ...
I'm using TSNE to visualize my clusters but the output seems a bit strange. There are supposed to be 3 clusters but instead, there are 4 lines. Is there something wrong with how I'm visualizing them ...
I want to use scikitlearn in my notebook. I installed it by this code:
!pip install scikit-plot
from scikitplot.estimators import plot_feature_importances
from scikitplot.metrics import ...
I am trying to use an sci-kit learn optimizer but I am having some issues that I can't resolve.I'm trying to use Bayesian optimization to tune my hyperparameters for my LSTM DNN. Any help would be ...
Im trying to convert car names from NumPy array to numeric values to use for linear regressor.
The label encoder gives warning: ValueError: could not convert string to float: 'porsche'
Can someone ...
I am trying to build a neural network using pytorch. I am using sklearn.MinMaxScaler to normalize my dataset. But how do I normalize a new incoming record that I will need to predict with regards to ...
My target is a data frame that looks like the one below, using MultiLabelBinarizer to encode the my data frame (each row at once) works well, while decoding always outputs data in wrong order.
Here ...
I am using sklearn AdaBoostClassfier and DecisonTreeClassfier to test Abalone Dataset which is in UCI repository. I just check the performance of DecisonTreeClassfier with max_depth is 1, I found it ...
I'm trying to run a logistic regression using Python and looping through several C's.
However, I keep getting the error ValueError: Penalty term must be positive; got (C=0.1). Which is very odd to me, ...