Learn R Programming

fastml (version 0.2.0)

define_knn_spec: Define K-Nearest Neighbors Model Specification

Description

Define K-Nearest Neighbors Model Specification

Usage

define_knn_spec(task, tune = FALSE)

Value

List containing the model specification (`model_spec`).

Arguments

task

Character string specifying the task type: "classification" or "regression".

tune

Logical indicating whether to use tuning parameters.