更新內容
建立`create_reduct_rules`,用來產生約略規則
使用範例
若範例資料如下
![Example data](https://i.imgur.com/AHzxjiu.png)
python
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](https://i.imgur.com/wyG1wUr.png)