comparison_plot {less} | R Documentation |
Plots the fitted functions obtained with various regressors (using their default values) on the one-dimensional dataset (X, y).
comparison_plot(X, y, model_list)
X |
Predictors |
y |
Response variables |
model_list |
List of models to be compared |
sine_data_list <- less::synthetic_sine_curve()
X_sine <- sine_data_list[[1]]
y_sine <- sine_data_list[[2]]
model_list <- c(DecisionTreeRegressor$new(), LinearRegression$new(), KNeighborsRegressor$new())
comparison_plot(X_sine, y_sine, model_list)