arlc_get_NonR_rules {arlclustering}R Documentation

Get Non-Redundant Rules

Description

This function takes a set of gross rules, removes redundant rules, and returns the total number of non-redundant rules along with the non-redundant rules.

Usage

arlc_get_NonR_rules(gross_rules)

Arguments

gross_rules

A vector or dataframe of gross rules.

Details

This function cleans the gross rules and provides non-redundant rules.

Value

A list containing the total number of non-redundant rules and the non-redundant rules.

Examples


library(arlclustering)
# Create a sample transactions dataset
sample_gml_file <- system.file("extdata", "karate.gml", package = "arlclustering")
g <- arlc_get_network_dataset(sample_gml_file, "Karate Club")
trans <- arlc_gen_transactions(g$graph)
supportRange <- seq(0.1, 0.2, by = 0.1)
Conf <- 0.5
params <- arlc_get_apriori_thresholds(trans, supportRange, Conf)
grossRules <- arlc_gen_gross_rules(trans, params$minSupp, params$minConf, 1, params$lenRules)
nonRR_rules <- arlc_get_NonR_rules(grossRules$GrossRules)


[Package arlclustering version 1.0.5 Index]