## What is information gain? - Decision tree algo

You can use information gain to decide ...READ MORE

## What is LassoLars? - Linear regression

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

## What is Gini Index in decision tree

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

## Can you give an example for isotonic regression?

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

## Plot logistic regression curve in R

The Code looks something like this: fit = ...READ MORE

## Is there a way to force the coefficient of the independent variable to be a positive coefficient in the linear regression model used in R?

A Few Constraints This is an example of ...READ MORE

## What is correlation and its types?

Correlation is a statistical measure that shows ...READ MORE

## ImportError: No module named imgaug

Hi@akhtar, You need to install the imgaug module ...READ MORE

## Linear Discriminant Analysis vs Naive Bayes

There are no standards fixed as to ...READ MORE

## What are the techniques used in supervised learning?

There are two main techniques used in ...READ MORE

## What are unit tests, integration tests, smoke tests, and regression tests?

Unit test: Specify and test one point ...READ MORE

## KNN algorithm on iris dataset

if testSet[x][-1] is predictions[x]: change it to if ...READ MORE

## What is KNN algorithm?

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

## Python code for basic linear regression

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

## Example of Logistic regression with python code

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

## Simple algorithm for generating random numbers with bigger/smaller probability

To move the density in one way, ...READ MORE

## Error using sklearn and linear regression: shapes (1,16) and (1,1) not aligned: 16 (dim 1) != 1 (dim 0)

Based on documents LinearRegression. An x array ...READ MORE

## What are some best examples of AI applications in our daily life?

Hi Michael, You don’t need to be a ...READ MORE

## ImportError: cannot import name minimum_spanning_tree

Hi@akhtar, I think there may be problem in ...READ MORE

## Is P(A, B) probability equal to P(A intersection B)?

They both signify the same thing; the ...READ MORE

## OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?)) in cvRead, file /build/opencv-FWWjHr/opencv-2.4.9.1+dfsg/modules/core/src/persistence.cpp,

Hi@akhtar, I think it should work. But make ...READ MORE

## How to calculate probability in a normal distribution given mean & standard deviation?

This is how you do it. >>> import ...READ MORE

I am working on a chatbot for ...READ MORE

## Calculate the probability in R for sum of two dice rolls

By converting the outer values to a ...READ MORE

## 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

## What is rolling linear regression?

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

## Scikit-Learn Linear Regression how to get coefficient's respective features?

What I discovered to be effective was ...READ MORE

## Python script for linear regression on panda dataframe

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

## How to save CNN model in keras?

Hi@akhtar, You can save your CNN model in keras. For ...READ MORE

## L2 regularization in Logistic regression vs NN

L2 Regularization is known as Ridge Regression. ...READ MORE

+1 vote

## How can I import Elastic-Net, Lasso and Ridge regression in Pyspark?

Use the code and also refer to ...READ MORE

## R: Force regression coefficients to add up to 1

b1 + b2 = 1 Let us fit ...READ MORE

## bias and variance calculation for linear regression

Evaluation of Variance: variance = np.var(prediction) # Where ...READ MORE

## AttributeError: module 'coco' has no attribute 'CocoConfig'

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

## Calculate Z-Score from Probability Value - R programming

It's named qnorm qnorm(p=0.841344746068543) Output 1 The following family of functions ...READ MORE

## What is the difference between a Confusion Matrix and Contingency Table?

Confusion Matrix is a classification matrix used ...READ MORE

## How to specify the prior probability for scikit-learn's Naive Bayes

In GaussianNB, there is a mechanism to ...READ MORE

## What is Isotonic regression?

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

## Asymptotic regression in Python?

If the problem persists, try using a ...READ MORE

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

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

## How to simulate first passage time probability in python for a random walk?

To begin with, you're now computing fp ...READ MORE

## Example to run KNN algorithm using python

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