import numpy as np import matplotlib.pyplot as plt # Load the data x_train = np.array([1.0, 2.0]) y_train = np.array([300.0, 500.0]) #Function to ca