scikit-learn tag

21 questions


1 answers
78 views
0
Code using sklearn cannot be executed in PyCharm

By executing code similar to the following in PyCharmfrom sklearn import svmxor_data = [P,Q,result[0, 0, 0],[0, 1, 1],[1, 0, 1],[1, 1, 0]]data = [ ]label = [ ]for row in xor_data:p=row[0]q = row[1]r=r...


2 answers
121 views
0
How to create feature quantities in time series

I have a question about creating time series feature quantities in machine learning.From the attached image below, for example, ·A certain value tends to increase immediately after Morning.·Noon has n...


1 answers
56 views
0
If you use scikit-learn in python, an ImportError will occur.

I'm reading the introduction to the technical critic's Data Scientist Training Reading Machine Learning The introductory scikit-learn page starts on page 128.When I tried the code over there, I got a ...


2 answers
99 views
0
How to evaluate classification issues

For the first time in my research on machine learning, I am still a beginner.I would like to calculate accuracy, precision, and recall by dealing with the problem of classification in the study.The nu...


1 answers
101 views
0
Understanding ElasticNetCV Argument n_alphas

The official scikit-learn document says Number of alpha long the regularization path, used for each l1_ratio. Could you tell me what Elasticnet's n_alpha argument is?


1 answers
80 views
0
About model relearning in sklearn

I am currently using Python's sklearn for machine learning.You can create a model and make predictions from that model.So I have a question. If you want to learn this model again, use that model Is it...

2 years ago

1 answers
102 views
0
Is there any difference between keras and scikit-learn depending on the calculation method of accuracy?

I am currently using Keras' CNN for multi-label image classification.Also, we reconfirmed the accuracy using various evaluation methods (Recall, Precision, F1 score, Accuracy) for scikit-learn as well...


2 answers
96 views
0
I want to divide data by taking into account the number of classes in Scikit-learn

Using the scikit-learn function train_test_split, as shown below, dataset_train,dataset_test=train_test_split(dataset,train_size=0.8)They will divide the data set into training and test data, but If t...

2 years ago

1 answers
73 views
0
Inquiry on how to lower Python LearnRegression MSE

Look at the code given. The skeleton code is an implementation of the following models:Sales = \beta_0 X_1^2 + \beta_1 X_2 + \beta_2 X_2 X_3 + \beta_3 X_3 + \beta_4Sales=β Try to lower the value of th...


1 answers
131 views
0
ValueError: could not convert string to float: error 'text'

I'm trying to process data about weather data, but I'm getting an error, so please let me know!from sklearn.linear_modelimport LinearRegressionmodel1=LinearRegression()X=datay=data2model1.fit(X,y)mode...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.