recipe
recipe(
options):Recipe
Defined in: ds/src/ml/recipe.js:71
Create a preprocessing recipe
Factory function to create a new Recipe instance. The recipe defines a sequence of preprocessing operations that will be applied to data.
Parameters
options
Initial data descriptor
data
any[]
Input data as array of objects
X
string | string[]
Feature column names
y
string
Target column name
Returns
A recipe object for chaining preprocessing steps
Example
const recipe = ds.ml.recipe({ data: penguins, X: ['bill_length', 'bill_depth', 'flipper_length'], y: 'species'});