np.concatenate is used for concatenating numpy arrays.We will discuss here some of the functionalities of this method of numpy arrays.It takes a list of two or more arrays as input…
Class labels can be converted to OneHot encoded array using keras.utils.to_categorical.The resultant array has number of rows equal to the number of samples, and number of columns equal to the…
Let’s say we want to convert multiple categorical variables into binary variables by selecting one category as “0” and the rest as “1”. Or we want to change the values…
Data distribution plots help visualize how quantitative data points are spread over the range of their values. Distribution of quantitative data can be shown in various ways such as box-plots,…
Often times you would want to save python objects for later use. For example, a dataset you constructed which could be used for several projects, or a transformer object with…
The `preprocessing` package in scikit-learn provides normalization function. Following is how we can do the L1 and L2 norm. L1 normalization L1 normalization transforms the data such that the sum…
See how to plot a bar-graph in R using ggplot.