View source: R/01-Prediction.R
predict_and_evaluate | R Documentation |
This function makes predictions using the pre-trained SLOS model and evaluates it based on RMSE, MAE, and R2 values.
predict_and_evaluate(data)
data |
A data frame or matrix of new data for prediction. |
A list containing the predictions made on the input data, a data frame combining the observed values and predictions side by side, and the RMSE, MAE, and R2.
# Load example data
data(SampledData)
# Make predictions and evaluate
results <- predict_and_evaluate(sampled_data)
# View results
print(results$RMSE)
print(results$MAE)
print(results$R2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.