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

address issue 22 by @Kyoshido #29

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

Kyoshido
Copy link
Contributor

@Kyoshido Kyoshido commented Aug 3, 2023

Hello,

I described my problem in issue #22

When I was at Statistic Austria I think that we repaired only package party to partykit, but we forgot to repair this issue.

I got this error

Error in do.call("rbind", probs) : second argument must be a list

So this is in simCategorical() specifically in row 67 probs <- predict(mod, newdata=data.table(newdata), type="prob")

And the reason for this error is that party package output is list and partykit package output is dataframe.

This makes it works :)

probs <- split(probs, seq(nrow(probs)))

I described my problem in issue 22
statistikat#22

When I was at Statistic Austria I think that we repaired only package party to partykit, we forgot to repair this issue.

 I got this error

> Error in do.call("rbind", probs) : second argument must be a list

So this is in simCategorical() specifically in row 67 probs <- predict(mod, newdata=data.table(newdata), type="prob")
And the reason for this error is that party package output is list and partykit package output is dataframe.
@bernhard-da
Copy link
Collaborator

@Kyoshido thx a lot Jiří 👍

@bernhard-da bernhard-da merged commit 701228c into statistikat:master Aug 4, 2023
8 checks passed
@bernhard-da bernhard-da self-assigned this Aug 4, 2023
@bernhard-da bernhard-da added the bug label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants