Utils

LogicCircuits.UtilsModule

Module with general utilities and missing standard library features that could be useful in any Julia project

source
LogicCircuits.Utils.LitType

Literals are represented as 32-bit signed integers. Positive literals are positive integers identical to their variable. Negative literals are their negations. Integer 0 should not be used to represent literals.

source
LogicCircuits.Utils.imputeMethod

Return a copy of Imputed values of X (potentially statistics from another DataFrame)

For example, to impute using same DataFrame:

impute(X; method=:median)

If you want to use another DataFrame to provide imputation statistics:

impute(test_x, train_x; method=:mean)

Supported methods are :median, :mean, :one, :zero

source
LogicCircuits.Utils.make_missing_mcarMethod
make_missing_mcar(d::DataFrame; keep_prob::Float64=0.8)

Returns a copy of dataframe with making some features missing as MCAR, with keep_prob as probability of keeping each feature.

source