Skip to content

v0.2.0

Latest
Compare
Choose a tag to compare
@Keycatowo Keycatowo released this 21 Mar 16:16
· 44 commits to main since this release

現在入口為RoughSet物件了!

from roughset import RoughSet

範例

With a example data
Example data

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

We will get the reduct rules.
reduct rules result

rules_with_scores = RS.get_reduct_rules_with_scores()
rules_with_scores