-
Notifications
You must be signed in to change notification settings - Fork 14
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
How to get the predictions for each gene? #10
Comments
The unnormalized outputs will be in the You can append a nn.SoftMax module to the model in order to get normalized probabilities. btw - have you tried the AttentiveChrome pytorch code in the repository? It's likely much easier to follow. |
I am still not sure on how to do this in lua, you mean something like: |
you can do
you can write each of these to a csv file using standard lua write to file methods. |
Uhm, for some reason it complains: |
I don't remember what dimension normalized_output would be. Can you try removing the |
same :( ( |
oh you shouldn't use |
I see haha, but still |
OK I think I got it :), |
Hi,
I ran the pipeline on my data smoothly, and got the ROC AUC in the train and test sets. However, I am not very familiar with torch/lua. How could I obtain the final predictions for each gene in the test set (either the 0/1 label or better the probablity [0,1])?. I guess this means just adding/modifying a couple of lines of code.
thanks!
PS. I'd be great too if I could obtain the accuracy/confusion matrices for the test set (not only the ROC AUC)
The text was updated successfully, but these errors were encountered: