You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/articles/Scratch.Rmd
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -79,15 +79,15 @@ These functions should silently finish. There is also a function that can be use
79
79
show_model_info("mixture_da")
80
80
```
81
81
82
-
The next step would be the declare the main arguments to the model. These are declared indpendnent of the mode. To specifiy the argument, there are a few slots to fill in:
82
+
The next step would be the declare the main arguments to the model. These are declared independent of the mode. To specify the argument, there are a few slots to fill in:
83
83
84
-
* The name that `parsnip` uses for the argument. In general, we try to use non-jargony names for arguments (e.g. "penalty" instead of "lambda" for regularised regression). We recommend consulting [this page]() to see if an existing argument name can be used before creating a new one.
84
+
* The name that `parsnip` uses for the argument. In general, we try to use non-jargony names for arguments (e.g. "penalty" instead of "lambda" for regularized regression). We recommend consulting [this page]() to see if an existing argument name can be used before creating a new one.
85
85
86
86
* The argument name that is used by the underlying modeling function.
87
87
88
-
* A function reference for a _contructor_ that will be used to generate tuning parameter values. This should be a character vector that has a named element called `fun` that is the contructor function. There is an optional element `pkg` that can be used to call the function using its namespace.
88
+
* A function reference for a _constructor_ that will be used to generate tuning parameter values. This should be a character vector that has a named element called `fun` that is the constructor function. There is an optional element `pkg` that can be used to call the function using its namespace. If referencing functions from the `dials` package, quantitative parameters can have additional arguments in the list for `trans` and `range` while qualitative parameters can pass `values` via this list.
89
89
90
-
* A logical value for wether the argument can be used to generate mutiple predictions for a single R object. For example, for boosted trees, if a model is fit with 10 boosting iterations, many modeling packages allow the model object to make predictions for any iterations less than the one used to fit the model. In general this is not the case so one would use `has_submodels = FALSE`.
90
+
* A logical value for wether the argument can be used to generate multiple predictions for a single R object. For example, for boosted trees, if a model is fit with 10 boosting iterations, many modeling packages allow the model object to make predictions for any iterations less than the one used to fit the model. In general this is not the case so one would use `has_submodels = FALSE`.
91
91
92
92
For `mda::mda()`, the main tuning parameter is `subclasses` which we will rewrite as `sub_classes`.
93
93
@@ -138,8 +138,7 @@ This is pretty simple since the data are not exposed to this function.
138
138
139
139
## Step 3. Add a Fit Module
140
140
141
-
Now that `parsnip` knows about the model, mode, and engine, we can give it the infomration on fitting the model for our engine.
142
-
In infomration needed to fit the model is contained in another list. The elements are:
141
+
Now that `parsnip` knows about the model, mode, and engine, we can give it the information on fitting the model for our engine. The information needed to fit the model is contained in another list. The elements are:
143
142
144
143
*`interface` a single character value that could be "formula", "data.frame", or "matrix". This defines the type of interface used by the underlying fit function (`mda::mda`, in this case). This helps the translation of the data to be in an appropriate format for the that function.
145
144
@@ -426,3 +425,4 @@ Not yet but there will be. For example, it might make sense to have a different
426
425
427
426
If you have a suggestion, please ad a GitHub issue to discuss it.
0 commit comments