kordk / torch-ecpg

(GPU accelerated) eCpG mapper
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Filter P-value Before Dataframe - Regression Full #18

Closed liamgd closed 1 year ago

liamgd commented 1 year ago

Regression full is majorly bottlenecked by the conversion from p-value GPU tensor to p-value CPU dataframe. This could be reduced by filtering the p-values prior to converting from tensor to dataframe. For this, not only does the P tensor need to be filtered such that P > p_thresh, but the indices that remain must also be stored when indexing the resultant dataframe.

liamgd commented 1 year ago

Added in d800809.