Skip to content

v0.1.0

Compare
Choose a tag to compare
@Keycatowo Keycatowo released this 20 Mar 16:13
· 57 commits to main since this release

更新內容

建立create_reduct_rules,用來產生約略規則

使用範例

若範例資料如下
Example data

from roughset.reduct import create_reduct_rules

# Load data from a CSV file
df = pd.read_csv('example.csv')

# Calculate reduct rules
create_reduct_rules(
    df=df,
    name_col="No",
    feature_col=['天氣', '事故情形', '事故原因'],
    decision_col='損壞部位',
    include_empty=True # Include empty reduct rules
)

則結果如下
reduct rules result