Data Science, Time Series Analysis, Machine Learning, Automl, Forecasting.
actual_test_quartiles = test_df['quartile'].astype(int) # Calculate the evaluation metrics accuracy = accuracy_score(actual_test_quartiles, forecasted_quartiles) # Print the evaluation metrics print(f'Accuracy: {accuracy:.4f}') >>> 0.4249 The out-of-sample accuracy is quite poor at 43%. By