Skip to content

error in performance(pred,"tpr","for") #15

@Xdai8923

Description

@Xdai8923

Dear all,

I am running ROCR to get my lncRNA coding potential cutoff by using the provided r script (https://sourceforge.net/projects/rna-cpat/files/Figure3_data/). I have checked my ROCR data, which does have any NA:

is.na(ROCR_data)
predictions Labels
FALSE FALSE
However, in my dataset to start with, there are 4562 labeled with "0" and 37988 labeled with "1". I have shuffled my data by row.
When I run:
perf <- performance(pred,"tpr","for")
It showed the following error:
perf <- performance(pred,"tpr","fpr")
Error in stats::approxfun(x.values.1, y.values.1, method = "constant", :
zero non-NA points

Could you please advise what caused this problem and how should I fix it?

Thank you.
Xiaoxia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions