Skip to content

cn_apply() Error in predict.randomForest #17

@rebekabato

Description

@rebekabato

Hi Patrick,

I am trying to apply my trained cnProc on my query data by the following piece of code:
cnRes <- cn_apply(expList, stQuery, cnProc)

The error message that I get is the following, I cannot figure out what this is related to:

"Error in predict.randomForest(classList[[ctt]], t(expDat[xgenes, ]), type = "prob") :
variables in the training data missing in newdata"

I have been using this function successfully on other query data, but now I get this error. I believe this should be about my processor. However, when I trained the processor, everything went well.

Do you have any suggestions on how I could avoid this error and what exactly this is about?

I appreciate your help.
Rebeka

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions