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

Training using awtan method fails with error Error : 'lpawnb' is not an exported object from 'namespace:bnclassify' #815

Closed
crazybilly opened this issue Jan 17, 2018 · 1 comment

Comments

@crazybilly
Copy link

@crazybilly crazybilly commented Jan 17, 2018

When trying to train a model using the awtan method, caret::train() fails with the following error(s):

model fit failed for Resample04: score=bic, smooth=1 Error : 'lpawnb' is not an exported object from 'namespace:bnclassify'

See my question on StackOverflow for a reproducible example.

Based on the release notes for bnclassify v0.3.2, it appears that bnclassify has replaced lpawnb() with lp().

Currently `getModelInfo('awtan') defines $awtan$fit as:

function (x, y, wts, param, lev, last, classProbs, ...) 
{
    dat <- if (is.data.frame(x)) 
        x
    else as.data.frame(x)
    dat$.outcome <- y
    struct <- bnclassify::tan_cl(class = ".outcome", dataset = dat, 
        score = as.character(param$score))
    bnclassify::lpawnb(struct, dat, smooth = param$smooth, trees = 10, 
        bootstrap_size = 0.5, ...)
}
@topepo
Copy link
Owner

@topepo topepo commented Jan 30, 2018

Their news file has it as deprecated. I'll have to write a new method.

@topepo topepo added the reproducible label Feb 7, 2018
@topepo topepo added the next release label Feb 27, 2018
topepo added a commit that referenced this issue Mar 6, 2018
@topepo topepo closed this Mar 7, 2018
topepo added a commit that referenced this issue Mar 9, 2018
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.