Category «Machine Learning»

CNN-Convolution Neural Network

When we enter into the world of computer vision we have to understand how a computer understands an image. A colored image has three channels and a 2D data in each channel. When the image size increases Machine learning start suffering from the curse of dimensionality, in order to overcome from this Deep learning comes up …

keras-Tensorboard

Many times we need to visualize our model on Tensorboard, for this we have to save our model and at runtime check out the performance. Here is the code for a simple linear regression using Keras and tensorboard. import Libraries: import keras import numpy as np from pandas import read_csv from keras.models import Sequential from …

Imbalanced-Data Set for Classification

Machine Learning algorithms unsatisfied problem with classifiers when faced with imbalanced datasets. Let’s take an example of the Red-wine problem. The Data we have is as: Here we have a data set in which we have different six categories, but not balanced categories. So, in the case available the samples are not equally balanced so …

Machine learning classification

Introduction Supervised machine learning has two types: 1) Regression,  2) Classification In regression, we deal with the continuous data type that means the predicted value or target value will be the type of continuous in nature but in classification problems, we basically deal with target value as discrete in nature it belongs to some class. Let’s understand some use …

Heteroscedasticity (Heteroskedasticity)

Heteroscedasticity refers to the condition in which the variability of a variable is unequal across the range of values of a second variable that predicts it. A scatterplot of these variables will often create a cone-like shape, as the scatter (or variability) of the dependent variable (DV) widens or narrows as the value of the independent …

Decision Tree

Decision Trees (DTs) are a non-parametric supervised learning method used for classification and regression. It works for both categorical and continuous input and output variables. It is a non-parametric algorithm. It uses the following algorithms. 1- ID3: ID3 uses Entropy and Information gain to construct a decision tree. 2- Gini Index (, if we select two items from a population …