comparison_plot {less}R Documentation

Comparison Plot

Description

Plots the fitted functions obtained with various regressors (using their default values) on the one-dimensional dataset (X, y).

Usage

comparison_plot(X, y, model_list)

Arguments

X

Predictors

y

Response variables

model_list

List of models to be compared

Examples

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)

[Package less version 0.1.0 Index]