Artificial Intelligence, Artificial Neural Network, Computer Science, Linear Regression, Python.
solution found so far if best_loss == 0 or loss < best_loss: best_loss = loss best_theta = self.theta best_bias = self.bias if (ephoc % 10) == 0: print(f"Current loss on ephoc {ephoc}: {loss}") #Set best parameters found during optmization to the params self.theta = best_theta self.bias = best_bias