Closed kordk closed 1 year ago
The p-value column is negative because it is using the torch.distributions.studentT.StudentT(df).log_prob function. It is the logarithm of the traditional probability. Because probability goes from 0 to 1 and log(1) = 0 and lim x->0+ log(x) = -inf, the resulting log_prob ranges from -inf to 0. Would you like the data to be transformed back into regular probability using an exponential? I do not know what base the logarithm is, but I assume it is the natural log, e^(log_prob) should be the correct p-value.
Fixed in 937787e. Now, the log_prob distribution is scaled to linear using torch.exp().
The column labels in the output file appear to be mismatched to the data columns. For example, if the gt_p column is the p-value the values in the column do not range as expected (i.e., 0 to 1).