LamaTe / mlr3shiny

mlr3shiny: Machine Learning in Shiny with mlr3
Other
27 stars 12 forks source link

several bugs in show_code removed (file server_predict.R): #25

Closed g-rho closed 2 years ago

g-rho commented 2 years ago
LamaTe commented 2 years ago

Thanks for the PR. Please update the condition of the if-statement as follows:

if ( isTRUE(currenttask$task$properties == "twoclass") ) {}

Otherwise, for regression the statement will throw an error as the task$properties is logical(0) and thus argument in if-statement is of length zero