Trending questions in Machine Learning

+1 vote
1 answer

ValueError: Found input variables with inconsistent numbers of samples: [1, 1000]

Hi@akhtar, Here you used x as your feature ...READ MORE

Apr 14, 2020 in Machine Learning by MD
• 95,140 points
24,550 views
+1 vote
1 answer

UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

Hi@akhtar, You need to install a GUI toolkit, ...READ MORE

Mar 5, 2020 in Machine Learning by MD
• 95,140 points
21,702 views
+1 vote
1 answer

ModuleNotFoundError: No module named 'keras'

Hi@akhtar, I think this problem is related to ...READ MORE

Apr 23, 2020 in Machine Learning by MD
• 95,140 points

edited Dec 15, 2020 by MD 16,641 views
0 votes
2 answers

ModuleNotFoundError: No module named 'tensorflow'

If you are using Anaconda, go to ...READ MORE

Nov 17, 2020 in Machine Learning by Vignesh
11,387 views
+1 vote
1 answer

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8nhf9w2t/grpcio/

Hi@akhtar, You may get this error because of ...READ MORE

May 16, 2020 in Machine Learning by MD
• 95,140 points
13,460 views
+1 vote
1 answer

ValueError: could not convert string to float in Machine learning.

Hi@akhtar, You are trying to use constant variable ...READ MORE

Apr 14, 2020 in Machine Learning by MD
• 95,140 points
12,125 views
0 votes
0 answers

Stock Prediction using previous data

Hello, I had followed one of the ...READ MORE

Jan 1 in Machine Learning by liamliu
• 120 points
121 views
0 votes
1 answer

value error found with inconsistent samples

Hi, As you can see that you have ...READ MORE

Dec 28, 2020 in Machine Learning by MD
• 95,140 points
95 views
0 votes
1 answer

Found input variables with inconsistent numbers of samples: [30, 120]

Hi@Kinjal, There is a problem with your X ...READ MORE

Dec 21, 2020 in Machine Learning by MD
• 95,140 points
275 views
0 votes
1 answer

ValueError: Found input variables with inconsistent numbers of samples: [2, 515738].

Hi, You are asking your query in the ...READ MORE

Dec 15, 2020 in Machine Learning by MD
• 95,140 points
534 views
0 votes
2 answers

valueerror: found input variables with inconsistent numbers of samples: [40, 10]

keep random_state =42 in train_test_split module READ MORE

Aug 27, 2020 in Machine Learning by sairam
• 160 points
6,029 views
+1 vote
1 answer
0 votes
1 answer

ValueError: Unknown label type: (array([ 7.5, 9.2, 9.2, ..., 5.8, 10. , 9.6]),)

Hi, There is a problem with your steps. ...READ MORE

Dec 16, 2020 in Machine Learning by MD
• 95,140 points
288 views
0 votes
1 answer

After running the following code : logmodel.fit(X_train, y_train)

Hi@saharshsharan, I think this is just a warning. ...READ MORE

Dec 21, 2020 in Machine Learning by MD
• 95,140 points
86 views
0 votes
1 answer

If both negative and positive skewness are present in data set,then how it can be removed??

Hi@shama, It depends on your use case. If ...READ MORE

Dec 8, 2020 in Machine Learning by MD
• 95,140 points
56 views
0 votes
1 answer

Error message because of quotation mark

Hello, Try this: summary(data[["diff`GBP/EUR`"]]) Hope it works! ...READ MORE

Nov 30, 2020 in Machine Learning by Niroj
• 82,680 points
66 views
0 votes
0 answers

AttributeError: 'numpy.ndarray' object has no attribute 'values'

Training_Set = Training_Set.values sc = MinMaxScaler(feature_range=(0, 1)) Train = ...READ MORE

Oct 19, 2020 in Machine Learning by neha
• 140 points

recategorized Oct 19, 2020 by MD 1,085 views
0 votes
1 answer

AttributeError: module 'sklearn' has no attribute 'LinearRegresion'

Hi@akhtar, You need to import the LinearRegression module ...READ MORE

Oct 15, 2020 in Machine Learning by MD
• 95,140 points
1,134 views
0 votes
1 answer

error: command 'gcc' failed with exit status 1

Hi@akhtar, I don't know which steps you followed. ...READ MORE

Sep 6, 2020 in Machine Learning by MD
• 95,140 points
2,692 views
0 votes
1 answer

tensorflow is installed but when importing in pycharm gets an error

Hi@soniya, This problem is related to the version. ...READ MORE

Sep 14, 2020 in Machine Learning by MD
• 95,140 points
1,638 views
0 votes
1 answer

How can I train a model and calculate the accuracy of CBR algorithm?

Hi@Abubakar, You can find lots of documents on ...READ MORE

Oct 16, 2020 in Machine Learning by MD
• 95,140 points
100 views
0 votes
1 answer

How to determine the correct kernel function?

Hi@Ogun, It depends on your dataset. First thing ...READ MORE

Oct 11, 2020 in Machine Learning by MD
• 95,140 points
87 views
0 votes
1 answer

ERROR: PyAudio-0.2.11-cp39-cp39-win32.whl is not a supported wheel on this platform.

Hi@akhtar, You should download the version that is ...READ MORE

Sep 6, 2020 in Machine Learning by MD
• 95,140 points
1,490 views
0 votes
1 answer

Classification in Naive Bayes algorithm

Hi@Ogun, The Numpy module doesn't have a predict attribute. ...READ MORE

Oct 5, 2020 in Machine Learning by MD
• 95,140 points
119 views
0 votes
1 answer

ValueError: Found input variables with inconsistent numbers of samples: [616, 308]

Hi@Alshwarya, I think there is a problem with your ...READ MORE

Sep 23, 2020 in Machine Learning by MD
• 95,140 points
449 views
0 votes
0 answers

ValueError: Found input variables with inconsistent numbers of samples: [11, 3988]

After reshaping also I am getting the ...READ MORE

Aug 27, 2020 in Machine Learning by sairam
• 160 points

edited Aug 27, 2020 by MD 1,525 views
0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'constant'

Hi@akhtar, There may be problem in the versions. ...READ MORE

Apr 21, 2020 in Machine Learning by MD
• 95,140 points
6,949 views
0 votes
1 answer

ImportError: No module named 'tensorflow.contrib.rnn.python.ops.core_rnn

Hi@akhtar, I think you got this error because of incompatible ...READ MORE

Apr 22, 2020 in Machine Learning by MD
• 95,140 points
6,881 views
0 votes
1 answer

AttributeError: module 'cv2.cv2' has no attribute 'face_LBPHFaceRecognizer'

Hi@MD, LBPHFaceRecognizer module comes from a package named ...READ MORE

Apr 20, 2020 in Machine Learning by akhtar
• 38,180 points
6,856 views
0 votes
1 answer

AttributeError: 'module' object has no attribute 'PyAudio'

Hi@akhtar, You may get this error if you ...READ MORE

Sep 6, 2020 in Machine Learning by MD
• 95,140 points
370 views
0 votes
1 answer

OpenCV Error: Assertion failed (size.width>0 && size.height>0)

Hi@akhtar, You are getting this error, because your ...READ MORE

Apr 20, 2020 in Machine Learning by MD
• 95,140 points
6,342 views
0 votes
1 answer

Found input variables with inconsistent numbers of samples:

Hi@sagar, You have converted your Dataframe into an ...READ MORE

Jul 13, 2020 in Machine Learning by MD
• 95,140 points
2,613 views
0 votes
1 answer

error in installing watson-machine-learning-client

Hi@akhtar, You may get this error if you ...READ MORE

Sep 6, 2020 in Machine Learning by MD
• 95,140 points
101 views
0 votes
2 answers

AttributeError: module 'scipy' has no attribute '_version_'

Hi@Sanjana, Actually you are missing one underscore in ...READ MORE

Aug 12, 2020 in Machine Learning by MD
• 95,140 points
1,080 views
0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'log'

Hi@akhtar, In Tensorflow 2.0, there is no attribute named ...READ MORE

Jul 13, 2020 in Machine Learning by MD
• 95,140 points
2,383 views
0 votes
1 answer

ValueError: Expected 2D array, got 1D array instead: array=[2 4 7 9].

Hi@akhtar, According to your code, you are trying ...READ MORE

Apr 9, 2020 in Machine Learning by MD
• 95,140 points
6,438 views
0 votes
1 answer

ModuleNotFoundError: No module named 'cPickle'

Hi@akhtar, There is no cPickle module in Python 3. ...READ MORE

Jul 14, 2020 in Machine Learning by MD
• 95,140 points
1,971 views
0 votes
1 answer

What is h5 model in Keras?

Hi@akhtar, H5 is a file format to store ...READ MORE

Jul 14, 2020 in Machine Learning by MD
• 95,140 points
1,970 views
0 votes
1 answer

problem with Found input variables with inconsistent numbers of samples: [1204, 134]

Hi@Alessandro, Here you used x as your feature parameter ...READ MORE

Jul 20, 2020 in Machine Learning by MD
• 95,140 points
1,615 views
0 votes
1 answer

How to convert categorical variable into dummy variable?

Hi@akhtar, You can do this task using pandas ...READ MORE

May 7, 2020 in Machine Learning by MD
• 95,140 points
4,774 views
0 votes
1 answer

How to load a model from an HDF5 file in Keras?

Hi@akhtar, If you stored the complete model, not ...READ MORE

Jul 14, 2020 in Machine Learning by MD
• 95,140 points
1,599 views
0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'placeholder'

Hi@akhtar, In Tensorflow 2.0, there is no placeholder. ...READ MORE

Jul 13, 2020 in Machine Learning by MD
• 95,140 points
1,320 views
+1 vote
2 answers

ValueError: Not enough values to unpack

Make the following changes in your script, ...READ MORE

Jun 24, 2019 in Machine Learning by Omkar
• 69,110 points
12,907 views
0 votes
1 answer

How to import the BatchNormalization function in Keras?

Hi@akhtar, The general use case is to use ...READ MORE

Jul 29, 2020 in Machine Learning by MD
• 95,140 points
145 views
0 votes
3 answers

How to train a Keras model on multiple GPUs?

Hello there, With the latest commit and release ...READ MORE

Jul 16, 2020 in Machine Learning by Lily
• 260 points
563 views
0 votes
1 answer
0 votes
1 answer

error: command 'cl.exe' failed: No such file or directory

Hi@akhtar, The cl.exe is the MSFT C /C++ compiler and ...READ MORE

Jul 13, 2020 in Machine Learning by MD
• 95,140 points
630 views
0 votes
1 answer

ImportError: cannot import name 'LinearRegression' from 'sklearn'

Hi@akhtar, You got this error because LinearRegression is ...READ MORE

Apr 24, 2020 in Machine Learning by MD
• 95,140 points
4,051 views