Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add function to check for constant model while focussearch #259

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
simplyfy getExtras
jakob-r committed Nov 24, 2016
commit 69511e38b3f06a218bdb3a6d76240b7927ea3ed8
6 changes: 1 addition & 5 deletions R/getExtras.R
Original file line number Diff line number Diff line change
@@ -61,11 +61,7 @@ getExtras = function(n, prop, train.time, control) {
if (control$filter.proposed.points) {
ex$filter.replace = prop$filter.replace[i]
}
if (isTRUE(attr(prop$prop.points, "constant.model"))) {
ex$constant.model = TRUE
} else {
ex$constant.model = FALSE
}
ex$constant.model = isTRUE(attr(prop$prop.points, "constant.model")
# if we use asyn MBO store node information and evaluation starte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why that complicated?

ex$constant.model = isTRUE(attr(prop$prop.points, "constant.model"))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TRUE

ex$train.time = if (i == 1) train.time else NA_real_
ex$prop.type = prop$prop.type[i]