Artificial Intelligence, Artificial Neural Network, Computer Science, Linear Regression, Python.
predict(self, X, weights, bias): #Since a dot product is calculated the sum for the weights is implicitly implemented return self.activation(tf.matmul(X, tf.transpose(weights))+bias) To simplify the code, I have decoupled the training procedure from the actual Layer class. The rationale behind this