fasterrisk.utils

Functions

get_groupIndex_to_featureIndices(...)

get_support_indices(betas)

get_nonsupport_indices(betas)

normalize_X(X)

compute_logisticLoss_from_yXB(yXB)

compute_logisticLoss_from_ExpyXB(ExpyXB)

compute_logisticLoss_from_betas_and_yX(betas, yX)

compute_logisticLoss_from_X_y_beta0_betas(X, y, beta0, ...)

convert_y_to_neg_and_pos_1(y)

isEqual_upTo_8decimal(a, b)

isEqual_upTo_16decimal(a, b)

insertIntercept_asFirstColOf_X(X)

get_all_product_booleans([sparsity])

download_file_from_google_drive(id, destination)

get_confirm_token(response)

save_response_content(response, destination)

check_bounds(bound, bound_name, num_features)

get_continuousFeatureName_from_binaryFeatureName(...)

get_groupIndex_from_featureNames(featureNames)

check_if_featureNames_come_from_RiskSLIM_GitHub_data(...)

Module Contents

fasterrisk.utils.get_groupIndex_to_featureIndices(featureIndex_to_groupIndex)
fasterrisk.utils.get_support_indices(betas)
fasterrisk.utils.get_nonsupport_indices(betas)
fasterrisk.utils.normalize_X(X)
fasterrisk.utils.compute_logisticLoss_from_yXB(yXB)
fasterrisk.utils.compute_logisticLoss_from_ExpyXB(ExpyXB)
fasterrisk.utils.compute_logisticLoss_from_betas_and_yX(betas, yX)
fasterrisk.utils.compute_logisticLoss_from_X_y_beta0_betas(X, y, beta0, betas)
fasterrisk.utils.convert_y_to_neg_and_pos_1(y)
fasterrisk.utils.isEqual_upTo_8decimal(a, b)
fasterrisk.utils.isEqual_upTo_16decimal(a, b)
fasterrisk.utils.insertIntercept_asFirstColOf_X(X)
fasterrisk.utils.get_all_product_booleans(sparsity=5)
fasterrisk.utils.download_file_from_google_drive(id, destination)
fasterrisk.utils.get_confirm_token(response)
fasterrisk.utils.save_response_content(response, destination)
fasterrisk.utils.check_bounds(bound, bound_name, num_features)
fasterrisk.utils.get_continuousFeatureName_from_binaryFeatureName(binaryFeatureName)
fasterrisk.utils.get_groupIndex_from_featureNames(featureNames)
fasterrisk.utils.check_if_featureNames_come_from_RiskSLIM_GitHub_data(featureNames)