-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCallbackBatchFSelect.Rd
More file actions
87 lines (82 loc) · 4.07 KB
/
Copy pathCallbackBatchFSelect.Rd
File metadata and controls
87 lines (82 loc) · 4.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CallbackBatchFSelect.R
\name{CallbackBatchFSelect}
\alias{CallbackBatchFSelect}
\title{Create Feature Selection Callback}
\description{
Specialized \link[bbotk:CallbackBatch]{bbotk::CallbackBatch} for feature selection.
Callbacks allow customizing the behavior of processes in mlr3fselect.
The \code{\link[=callback_batch_fselect]{callback_batch_fselect()}} function creates a \link{CallbackBatchFSelect}.
Predefined callbacks are stored in the \link[mlr3misc:Dictionary]{dictionary} \link{mlr_callbacks} and can be retrieved
with \code{\link[=clbk]{clbk()}}.
For more information on callbacks see \code{\link[=callback_batch_fselect]{callback_batch_fselect()}}.
}
\examples{
# Write archive to disk
callback_batch_fselect("mlr3fselect.backup",
on_optimization_end = function(callback, context) {
saveRDS(context$instance$archive, "archive.rds")
}
)
}
\section{Super classes}{
\code{\link[mlr3misc:Callback]{mlr3misc::Callback}} -> \code{\link[bbotk:CallbackBatch]{bbotk::CallbackBatch}} -> \code{CallbackBatchFSelect}
}
\section{Public fields}{
\if{html}{\out{<div class="r6-fields">}}
\describe{
\item{\code{on_eval_after_design}}{(\verb{function()})\cr
Stage called after design is created.
Called in \code{ObjectiveFSelectBatch$eval_many()}.}
\item{\code{on_eval_after_benchmark}}{(\verb{function()})\cr
Stage called after feature sets are evaluated.
Called in \code{ObjectiveFSelectBatch$eval_many()}.}
\item{\code{on_eval_before_archive}}{(\verb{function()})\cr
Stage called before performance values are written to the archive.
Called in \code{ObjectiveFSelectBatch$eval_many()}.}
\item{\code{on_auto_fselector_before_final_model}}{(\verb{function()})\cr
Stage called before the final model is trained.
Called in \code{AutoFSelector$train()}.
This stage is called after the optimization has finished and the final model is trained with the best feature set
found.}
\item{\code{on_auto_fselector_after_final_model}}{(\verb{function()})\cr
Stage called after the final model is trained.
Called in \code{AutoFSelector$train()}.
This stage is called after the final model is trained with the best feature set found.}
}
\if{html}{\out{</div>}}
}
\section{Methods}{
\subsection{Public methods}{
\itemize{
\item \href{#method-CallbackBatchFSelect-clone}{\code{CallbackBatchFSelect$clone()}}
}
}
\if{html}{\out{<details open><summary>Inherited methods</summary>
<ul>
<li><span class="pkg-link" data-pkg="mlr3misc" data-topic="Callback" data-id="call"><a href='../../mlr3misc/html/Callback.html#method-Callback-call'><code>mlr3misc::Callback$call()</code></a></span></li>
<li><span class="pkg-link" data-pkg="mlr3misc" data-topic="Callback" data-id="format"><a href='../../mlr3misc/html/Callback.html#method-Callback-format'><code>mlr3misc::Callback$format()</code></a></span></li>
<li><span class="pkg-link" data-pkg="mlr3misc" data-topic="Callback" data-id="help"><a href='../../mlr3misc/html/Callback.html#method-Callback-help'><code>mlr3misc::Callback$help()</code></a></span></li>
<li><span class="pkg-link" data-pkg="mlr3misc" data-topic="Callback" data-id="initialize"><a href='../../mlr3misc/html/Callback.html#method-Callback-initialize'><code>mlr3misc::Callback$initialize()</code></a></span></li>
<li><span class="pkg-link" data-pkg="mlr3misc" data-topic="Callback" data-id="print"><a href='../../mlr3misc/html/Callback.html#method-Callback-print'><code>mlr3misc::Callback$print()</code></a></span></li>
</ul>
</details>}}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-CallbackBatchFSelect-clone"></a>}}
\if{latex}{\out{\hypertarget{method-CallbackBatchFSelect-clone}{}}}
\subsection{\code{CallbackBatchFSelect$clone()}}{
The objects of this class are cloneable with this method.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}
\preformatted{CallbackBatchFSelect$clone(deep = FALSE)}
\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{deep}}{Whether to make a deep clone.}
}
\if{html}{\out{</div>}}
}
}
}