A Single Layer Perceptron for Regression: Part 3
New Functions created: normalize : This function normalizes inputs using either min-max or Z-score normalization techniques. Importance of Normalization: Preventing than others just because their range of values are greater in comparison. Parameters : (1) input (numpy array (m,n)): input/predictor values that have to be normalized. (2) outputs(numpy array (m,1)) : Output values that have to be normalized. (3) type_of_normlaization (string): can be min_max or z_score. denormalize: This function converts the normalized values back to their original form. Parameters: (1) outputs(numpy array (m,1)) : Predicted outputs that are to be brought back to ...