# For example, to run a linear regression on the dataset "X" with responses
# "y", saving the trained model to "lr_model", the following command could be
# used:
if (FALSE) {
output <- linear_regression(training=X, training_responses=y)
lr_model <- output$output_model
}
# Then, to use "lr_model" to predict responses for a test set "X_test",
# saving the predictions to "X_test_responses", the following command could
# be used:
if (FALSE) {
output <- linear_regression(input_model=lr_model, test=X_test)
X_test_responses <- output$output_predictions
}
Run the code above in your browser using DataLab