Most viewed questions in Machine Learning

+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,060 points
7,036 views
0 votes
1 answer

Python error "TypeError: unsupported operand type(s) for -: 'list' and 'int'"

Hey, look at your code's second last ...READ MORE

Aug 2, 2019 in Machine Learning by Naman
3,836 views
0 votes
1 answer

Different types of Logistic Regression

There are three main types of logistic ...READ MORE

May 13, 2019 in Machine Learning by Nikhil
3,285 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 in Machine Learning by MD
• 22,520 points
2,529 views
0 votes
1 answer

What is greedy approach in Decision tree algorithm?

“Greedy Approach is based on the concept ...READ MORE

May 13, 2019 in Machine Learning by Upadhya
2,326 views
0 votes
1 answer

ValueError: Input contains NaN, infinity or a value too large for dtype('float32')

Assuming X_test is a pandas dataframe, you ...READ MORE

May 23, 2019 in Machine Learning by Maya
2,073 views
+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 in Machine Learning by MD
• 22,520 points
1,428 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 in Machine Learning by MD
• 22,520 points
1,261 views
0 votes
0 answers

AttributeError: module 'tensorflow.compat' has no attribute 'v1'

i am building an Rasa chatbot but ...READ MORE

Nov 3, 2019 in Machine Learning by Usman
• 120 points
1,251 views
+1 vote
1 answer

how to analysis the heatmap to find the correlation

Hi @Vikas, there are 5 simple steps ...READ MORE

Sep 30, 2019 in Machine Learning by Vishal
1,107 views
0 votes
1 answer

Lear regression using python error - ValueError: operands could not be broadcast together with shapes (1,3) (1,2)

Hey! Your array shapes seem inconsistent. Try ...READ MORE

May 24, 2019 in Machine Learning by Vaishu
1,051 views
0 votes
1 answer

Disadvantages of using decision tree?

Even though the decision tree algorithm has ...READ MORE

May 13, 2019 in Machine Learning by Jinu
1,030 views
0 votes
1 answer

Python code for executing decision tree algorithm

Hey! Try this: # Run this program on ...READ MORE

May 13, 2019 in Machine Learning by Haseeb
974 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 in Machine Learning by MD
• 22,520 points
920 views
0 votes
1 answer

Ignore the NaN and do the linear regression on remaining values

Yes, you can do this using statsmodels: import ...READ MORE

May 22, 2019 in Machine Learning by Hari
854 views
0 votes
1 answer

ModuleNotFoundError: No module named 'tensorflow'

Hi@akhtar, To avoid this error, you can use ...READ MORE

Apr 21 in Machine Learning by MD
• 22,520 points
813 views
0 votes
1 answer

Numpy rounds very small number to zeros - Markov Chain(Python)

Use higher-precision floats, if available on your ...READ MORE

Aug 2, 2019 in Machine Learning by Harry
784 views
0 votes
1 answer

ModuleNotFoundError: No module named 'keras'

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

Apr 23 in Machine Learning by MD
• 22,520 points
757 views
0 votes
1 answer

Time series analysis - Machine learning python

With machine learning and analysis, its always ...READ MORE

Aug 1, 2019 in Machine Learning by Vinod
731 views
0 votes
1 answer

Difference between reinforcement learning and supervised learning?

In reinforcement learning, the output depends on ...READ MORE

May 8, 2019 in Machine Learning by Nipun
729 views
0 votes
1 answer

Can you give an example for isotonic regression?

Have a look at this one, It's ...READ MORE

Jun 3, 2019 in Machine Learning by Mihir
703 views
0 votes
1 answer

Features of KNN algorithm

The KNN algorithm has the following features: KNN ...READ MORE

May 13, 2019 in Machine Learning by Vedant
640 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 in Machine Learning by MD
• 22,520 points
564 views
0 votes
1 answer

How do I convert a pandas dataframe to a numpy array using python?

Try something like this: df.values array([[nan, 0.2, nan], ...READ MORE

May 22, 2019 in Machine Learning by Krishti
557 views
0 votes
1 answer

Advantages of using decision tree?

These are the advantages of using a ...READ MORE

May 13, 2019 in Machine Learning by Mahima
495 views
0 votes
1 answer

Python code for basic linear regression

Hi @Dipti, you could try something like ...READ MORE

May 9, 2019 in Machine Learning by Vinod
476 views
0 votes
1 answer

Example of Logistic regression with python code

Have a look at this: import csv import ...READ MORE

May 13, 2019 in Machine Learning by Jinu
468 views
0 votes
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 in Machine Learning by MD
• 22,520 points
461 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 in Machine Learning by MD
• 22,520 points
441 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 in Machine Learning by akhtar
• 10,330 points
418 views
0 votes
1 answer

What is Isotonic regression?

Isotonic regression builds an increasing approximation of ...READ MORE

Jun 3, 2019 in Machine Learning by Mohit
407 views
0 votes
0 answers

Hello I have some errors while implementing variational autoencoder

def dense_layers(sizes): return tfk.Sequential([tfkl.Dense(size, ...READ MORE

May 18, 2019 in Machine Learning by anonymous

edited May 20, 2019 by Omkar 397 views
0 votes
1 answer

What is LassoLars? - Linear regression

LassoLars is a lasso model implemented using ...READ MORE

May 22, 2019 in Machine Learning by Basu
394 views
0 votes
1 answer

Example to run KNN algorithm using python

Have a look at this one: from sklearn.datasets ...READ MORE

May 8, 2019 in Machine Learning by Harvy
347 views
0 votes
1 answer

Create dataframe using Pandas - Linear Regression

You can read excel files df = pd.read_excel(...) You ...READ MORE

May 22, 2019 in Machine Learning by Neha
314 views
0 votes
1 answer

What is rolling linear regression?

Rolling regression is the analysis of changing ...READ MORE

May 23, 2019 in Machine Learning by Jinu
308 views
0 votes
1 answer

IndexError: tuple index out of range

Hi@akhtar, I don't know your use cases. But ...READ MORE

Apr 15 in Machine Learning by MD
• 22,520 points
286 views
0 votes
1 answer

What is Gini Index in decision tree

Gini Index is a metric to measure ...READ MORE

May 14, 2019 in Machine Learning by Raj
275 views
0 votes
1 answer

What is decision tree algorithm?

A decision tree is a map of ...READ MORE

May 13, 2019 in Machine Learning by Upadhya
273 views
0 votes
1 answer

What are different types of regressions?

There are three types of regressions: Linear regression: Linear ...READ MORE

May 9, 2019 in Machine Learning by Jinu
239 views
0 votes
1 answer
0 votes
1 answer

Python script for linear regression on panda dataframe

Use the following code: from scipy import stats slope, ...READ MORE

May 23, 2019 in Machine Learning by Imran
214 views
0 votes
1 answer

AttributeError: module 'matplotlib' has no attribute 'scatter'

Hi@akhtar, To avoid this error, make sure you ...READ MORE

Apr 16 in Machine Learning by MD
• 22,520 points
207 views
0 votes
1 answer

Can you give LassoLars python example?

Hey @Vivek, Try something like this: >>> from ...READ MORE

May 22, 2019 in Machine Learning by Tanmay
204 views
0 votes
1 answer

Process for mechanical engineer to become machine learning Engineer?

Hey! There are two main languages that ...READ MORE

Aug 20, 2019 in Machine Learning by Vishal
190 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 in Machine Learning by MD
• 22,520 points
186 views
0 votes
1 answer

Tensorflow ImportError: cannot import name'abs' error

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

Apr 23 in Machine Learning by MD
• 22,520 points
186 views
0 votes
1 answer

DLL load failed: A dynamic link library (DLL) initialization routine failed.

Hi@akhtar, This problem is related to version. Follow ...READ MORE

Apr 23 in Machine Learning by MD
• 22,520 points
182 views
0 votes
1 answer

What is KNN algorithm?

KNN which stand for K Nearest Neighbor ...READ MORE

May 13, 2019 in Machine Learning by Jinu
178 views