/rough-set

Rough Set Python Package is a Python library that provides a set of tools to calculate rough sets and obtain reduct rules.

Primary LanguagePythonMIT LicenseMIT

🐍 Rough Set Python Package

pypi CI Commits Views GitHub LICENSE GitHub repo size GitHub Release Date - Published_At Streamlit App pypi Downloads pypi version

Rough Set Python Package is a Python library that provides a set of tools to calculate rough sets and obtain reduct rules. This package is useful for data analysis and machine learning tasks where you need to deal with uncertainty or incomplete data.

πŸ“¦ Installation

You can install Rough Set Python Package using pip command:

pip install roughset

πŸ“š Usage

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.create_reduct_rules(include_empty=True)
rules

We will get the reduct rules. reduct rules result

rules_with_scores = RS.evaluate_metrics()
rules_with_scores

🀝 Contribution

If you want to contribute to Rough Set Python Package, you can fork the repository on GitHub and create a pull request. You can also report bugs, suggest new features, or ask for help in the issues section.

πŸ“œ License

Rough Set Python Package is released under the MIT License. You can find the details of the license in the LICENSE file.