A Python library that provides a set of tools to calculate rough sets and obtain reduct rules.
Project description
🐍 Rough Set Python Package
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
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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file roughset-0.3.0.tar.gz
.
File metadata
- Download URL: roughset-0.3.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bb7561e9ccfcf1c50a180a77d0349ff0478b792a4f908cb8825e32d1e80a074 |
|
MD5 | 2ed5e6f5866c9bd4d43e471ee9f919b8 |
|
BLAKE2b-256 | 700c8f985fcf4a79a7b7cee0b44bd9dab98930f80fbd74e746300a4e8ef69660 |