text_plain_output_1.png
"""X_train_2, X_valid_2, y_train_cc_2, y_valid_cc_2 = train_test_split(covid_train[X_features_cc], y_cc, random_state=42)
model_cc_2 = RandomForestRegressor(n_estimators=100, random_state=42)
model_cc_2.fit(X_train_2, y_train_cc_2)
predic = model_cc_2.predict(X_valid_2)
mae = mean_absolute_error(y_valid_cc_2, predic)
msle = mean_squared_log_error(y_valid_cc_2, predic)
print("CC MAE: %f MSLE %f" % (mae, msle))
X_train_2, X_valid_2, y_train_ft_2, y_valid_ft_2 = train_test_split(covid_train[X_features_ft], y_ft, random_state=42)
model_ft_2 = RandomForestRegressor(n_estimators=50, random_state=42)
model_ft_2.fit(X_train_2, y_train_ft_2)
predic = model_ft_2.predict(X_valid_2)
mae = mean_absolute_error(y_valid_ft_2, predic)
msle = mean_squared_log_error(y_valid_ft_2, predic)
print("CC MAE: %f MSLE %f" % (mae, msle))"""
'\nCC MAE: 217.231728 MSLE 0.881407\nCC MAE: 14.093100 MSLE 0.503043\n'