dimreduce's People
dimreduce's Issues
Floating point precision issue?
Hi,
thank you for this very handy and useful package! I have been using it for extracting features from sequencing data for classification purposes and most of the time the package has worked well. But occasionally the ispca function fails and gives the following error message
"[1] "Computing the supervised principal components.."
Error in FUN(X[[i]], ...) :
Something went wrong: the active set became empty after screening.
Calls: function_that_calls_ISPCA -> ispca -> lapply -> FUN -> spcs -> lapply -> FUN
Execution halted"
function_that_calls_ISPCA is a function in my pipeline which calls ispca function from the dimreduce package. I believe that the source of this error are lines 78-81 from auxiliary.R, where variables that have score above a certain threshold are picked. Based on my debugging, there is probably a problem with floating point precision in this part of the code from line 80
cand[scores[cand] >= th]
which makes the comparison fail.
To be able to run the ispca function to my data, I fixed the problem locally by replacing the part above with
cand[which(round(scores[cand] - th,10) >= 0)]
With this change, I am able to run the ispca function to all my data without problems. It might not be the best way to fix it, but it seems to work. Unfortunately I cannot share the data set for reproducing the error as it is not a public data set.
Best regards,
Viivi Halla-aho
P-values from featscore.test
Hi,
First of all thanks for this really handy package! I'm sure I'm going to rely on it in my future projects.
I have a question regarding the P-values of featurescore.test. Isn't it necessary to adjust it for multiple testing?
Best,
Mohamed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.