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

Error in { : task 1 failed - "could not find function "treeresponse"" #1022

Closed
fridrichmrtn opened this issue Mar 24, 2019 · 4 comments
Closed

Error in { : task 1 failed - "could not find function "treeresponse"" #1022

fridrichmrtn opened this issue Mar 24, 2019 · 4 comments

Comments

@fridrichmrtn
Copy link

@fridrichmrtn fridrichmrtn commented Mar 24, 2019

Hi guys,

I am running into the error described in the headline. The problem is probably related to probability response of the ctree2, could you please look into it and advise?

Thanks,

Br,

M.

Minimal reproducible example with dataset:

# load caret
library(caret)

# load data, get target and feature column labels
data(iris)
col_names = names(iris);target = "Species"
feature_names = col_names[col_names!=target]

# construct trainControl object for train method 
fit_control = trainControl(classProbs=T,
                           summaryFunction = multiClassSummary,
                           search="random")

# get results
ctree_fit = train(iris[,feature_names], iris[,target],
              method="ctree2",
              trControl=fit_control)

Session Info:

> sessionInfo()

R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Czech_Czechia.1250  LC_CTYPE=Czech_Czechia.1250    LC_MONETARY=Czech_Czechia.1250 LC_NUMERIC=C                  
[5] LC_TIME=Czech_Czechia.1250    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] caret_6.0-80         ggplot2_3.0.0        lattice_0.20-35      RevoUtils_11.0.1     RevoUtilsMath_11.0.0
@fridrichmrtn
Copy link
Author

@fridrichmrtn fridrichmrtn commented Mar 24, 2019

Workaround for toy example above is to load party manually, however, the bug still prevents using ctree2 from parallel tuning.

topepo added a commit that referenced this issue Mar 25, 2019
@topepo
Copy link
Owner

@topepo topepo commented Mar 25, 2019

Give these changes a try.

The parallel part is difficult, mostly because different technologies do things differently. Thankfully @bwlewis is going to globally solve this in #1017 (jk 😃)

@fridrichmrtn
Copy link
Author

@fridrichmrtn fridrichmrtn commented Mar 26, 2019

Thanks Max, you guys are doing great work.

@topepo topepo closed this Mar 26, 2019
@topepo
Copy link
Owner

@topepo topepo commented Mar 26, 2019

btw that change was included in the version of caret that hit CRAN yesterday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.