A delivery app predicted how many minutes some orders would take (guess). You also know how long they really took (truth).
Write error_report(truth, guess). Return a dict with four entries:
"mae": the mean absolute error."mse": the mean squared error."rmse": the square root of the mean squared error."r2": the R² score.Use the functions from sklearn.metrics, with truth first. Round every value to 3 decimal places and return plain Python floats.