Tag: ReLu
-
Change elements of an array based on a condition using np.where
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 of an array based on a condition, such as in RELU function where all negative values are converted to zero and rest stay the same.…