## Not run: ------------------------------------
# # What if we have no feature selected?
# if (sum(y) == 0) {
#
# # Logging specific
# LauraeML_utils.badlog(logging, x, y, score = NA)
#
# # Last, we return an absurd score which is so high
# # you would rather have a random model than this 0-feature model
# #
# # This iteration will be ignored by the optimizer if
# # it does not belong to the elite proportion of the optimization iteration
# # which should be obviously true
# return(LauraeML_utils.badinput(maximize,
# score = 9999999))
# }
## ---------------------------------------------
Run the code above in your browser using DataLab