Skip to content

Miic v210 #136

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

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

Miic v210 #136

wants to merge 15 commits into from

Conversation

franck-simon
Copy link
Collaborator

Split of miic/tmiic
Features selection

@@ -490,14 +490,16 @@ jointplot_hist <- function(X, Y, result, nameDist1, nameDist2,
fill_density_flat[fill_density_flat$density == 0, "density"] <- NA
fill_density_flat$logdensity = log(fill_density_flat$density)

hist2d <- ggplot2::ggplot(fill_density_flat) +
# with is a bad fix to avoid warnings from ggplot2 or notes from CRAN checks
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: small typo in the comment

# print (paste0 ("nrow: ", nrow (data_loop),
# ", ncol: ", ncol (data_loop) ) )
#
if ( (nrow (data_loop) > 0) && (ncol (data_loop) > 0) )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ( (nrow (data_loop) > 0) && (ncol (data_loop) > 0) )
if ( (nrow (data_loop) > 0) && (ncol (data_loop) > 1) )

If I get it right, if we don't skip the checks above we drop the constant columns ? So theoretically, we might remove all the variables and end up with a data_loop containing 0 or 1 column . When this happens , miic main function crashes because it cannot reconstruct a network from a single variable .
This event becomes more likely when running the last vofs in the list against the remaining variables .And also when working with small size datasets like flash-seq

#-------------------------------------------------------------------------------
compute_mi_batch <- function (input_data,
var_of_interest_names=NULL, var_of_interest_values=NULL, unit="log_conf",
corrected=T, precomputed_mis=NULL, skip_cheks=F, n_threads=1, verbose=3)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT : small typo .

Suggested change
corrected=T, precomputed_mis=NULL, skip_cheks=F, n_threads=1, verbose=3)
corrected=T, precomputed_mis=NULL, skip_checks=F, n_threads=1, verbose=3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants