現在入口為RoughSet物件了!
from roughset import RoughSet
範例
from roughset import RoughSet
# Load data from a CSV file
df = pd.read_csv('example.csv')
# Create RoughSet object
RS = RoughSet(
df=df,
name_col="No",
feature_col=['天氣', '事故情形', '事故原因'],
decision_col='損壞部位'
)
rules = RS.get_reduct_rules(include_empty=True)
rules
rules_with_scores = RS.get_reduct_rules_with_scores()
rules_with_scores