Name | eazyml-cf JSON |
Version |
0.0.20
JSON |
| download |
home_page | https://eazyml.com/ |
Summary | eazyml cf api |
upload_time | 2024-12-19 06:28:34 |
maintainer | None |
docs_url | None |
author | Eazyml |
requires_python | >=3.8 |
license | None |
keywords |
python
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
## Eazyml Counterfactual
![Python](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue) ![PyPI package](https://img.shields.io/badge/pypi%20package-0.0.19-brightgreen) ![Code Style](https://img.shields.io/badge/code%20style-black-black)
EazyML revolutionizes machine learning by introducing counterfactual inference, automating the process of identifying optimal changes to variables that shift outcomes from unfavorable to favorable. This approach overcomes the limitations of manual "what-if" analysis, enabling models to provide actionable, prescriptive insights alongside their predictions.
### Features
- It performs feature selection from a training dataset by excluding specific columns and the target outcome column.
- This function builds a machine learning model using a specified training dataset.
- It provides platform to automates counterfactual inference for a test record by calculating the probability of an unfavorable outcome and determining the optimal adjustments to minimize it. It processes input datasets, configuration parameters, and model details to identify actionable changes in features while respecting constraints, enabling prescriptive insights for improved outcomes.
### APIs
It provides following apis :
1. scikit_feature_selection
```python
sk_feature_selection(
train_file = 'train/file/path.csv',
outcome = 'outcome column name',
config= {
"discard_columns" : ['id', 'unnamed'],
}
)
2. scikit_model_building
```python
sk_feature_selection(
train_file = 'train/file/path.csv',
test_file = 'test/file/path.csv',
outcome = 'outcome column name',
selected_columns = 'List of selected input features',
config= {
"unfavorable_outcome" : 1,
"sklearn_classifier" : 'Gradient Boosting'
}
)
3. ez_cf_inference
```python
ez_cf_inference(
train_file = 'train/file/path.csv',
test_file = 'test/file/path.csv',
outcome = 'outcome column name',
config= {
"unfavorable_outcome" : 1,
"lower_quantile" : 0.01,
"upper_quantile" : 0.99,
"p" : 40,
"M" : 2,
"N" : 10000,
"tolerable_error_threshold" : 0.1
},
selected_columns = 'List of selected input features',
model_info = 'dictionary of model information'
test_record_idx = 'single or multiple testdata id or None'
)
Raw data
{
"_id": null,
"home_page": "https://eazyml.com/",
"name": "eazyml-cf",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "python",
"author": "Eazyml",
"author_email": "admin@ipsoftlabs.com",
"download_url": "https://files.pythonhosted.org/packages/95/5d/40146bfebf42c0546aca0900ce4a9656b7c8238945f70513224f0f67ed56/eazyml_cf-0.0.20.tar.gz",
"platform": null,
"description": "## Eazyml Counterfactual\n![Python](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue) ![PyPI package](https://img.shields.io/badge/pypi%20package-0.0.19-brightgreen) ![Code Style](https://img.shields.io/badge/code%20style-black-black)\n\nEazyML revolutionizes machine learning by introducing counterfactual inference, automating the process of identifying optimal changes to variables that shift outcomes from unfavorable to favorable. This approach overcomes the limitations of manual \"what-if\" analysis, enabling models to provide actionable, prescriptive insights alongside their predictions.\n\n### Features\n- It performs feature selection from a training dataset by excluding specific columns and the target outcome column.\n- This function builds a machine learning model using a specified training dataset.\n- It provides platform to automates counterfactual inference for a test record by calculating the probability of an unfavorable outcome and determining the optimal adjustments to minimize it. It processes input datasets, configuration parameters, and model details to identify actionable changes in features while respecting constraints, enabling prescriptive insights for improved outcomes.\n### APIs\nIt provides following apis :\n\n1. scikit_feature_selection\n ```python\n sk_feature_selection(\n train_file = 'train/file/path.csv',\n outcome = 'outcome column name',\n config= {\n \"discard_columns\" : ['id', 'unnamed'],\n }\n )\n\n\n\n2. scikit_model_building\n ```python\n sk_feature_selection(\n train_file = 'train/file/path.csv',\n test_file = 'test/file/path.csv',\n outcome = 'outcome column name',\n selected_columns = 'List of selected input features',\n config= {\n \"unfavorable_outcome\" : 1,\n \"sklearn_classifier\" : 'Gradient Boosting'\n }\n )\n\n\n\n3. ez_cf_inference\n ```python\n ez_cf_inference(\n train_file = 'train/file/path.csv',\n test_file = 'test/file/path.csv',\n outcome = 'outcome column name',\n config= {\n \"unfavorable_outcome\" : 1,\n \"lower_quantile\" : 0.01,\n \"upper_quantile\" : 0.99,\n \"p\" : 40,\n \"M\" : 2,\n \"N\" : 10000,\n \"tolerable_error_threshold\" : 0.1\n },\n selected_columns = 'List of selected input features',\n model_info = 'dictionary of model information'\n test_record_idx = 'single or multiple testdata id or None'\n )\n",
"bugtrack_url": null,
"license": null,
"summary": "eazyml cf api",
"version": "0.0.20",
"project_urls": {
"Documentation": "https://eazyml-docs.readthedocs.io/en/latest/",
"Homepage": "https://eazyml.com/"
},
"split_keywords": [
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a8fb78cb9f0c8422730ab55aa3e5492c50dd1c61c0d3c9fede13855c440dde89",
"md5": "962608bf3d9307c98de108c856483a90",
"sha256": "491150d306e202faa5ec303ebdd3c47c2f4675136facc78243280c9fdc84c519"
},
"downloads": -1,
"filename": "eazyml_cf-0.0.20-py3-none-any.whl",
"has_sig": false,
"md5_digest": "962608bf3d9307c98de108c856483a90",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 2968287,
"upload_time": "2024-12-19T06:28:30",
"upload_time_iso_8601": "2024-12-19T06:28:30.850039Z",
"url": "https://files.pythonhosted.org/packages/a8/fb/78cb9f0c8422730ab55aa3e5492c50dd1c61c0d3c9fede13855c440dde89/eazyml_cf-0.0.20-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "955d40146bfebf42c0546aca0900ce4a9656b7c8238945f70513224f0f67ed56",
"md5": "0d0e08e2a324d114bfb587ed011b015c",
"sha256": "960bb8d423137bd62d237609fcf7d9295e863e901160c13d849e60d55cadf614"
},
"downloads": -1,
"filename": "eazyml_cf-0.0.20.tar.gz",
"has_sig": false,
"md5_digest": "0d0e08e2a324d114bfb587ed011b015c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 2887282,
"upload_time": "2024-12-19T06:28:34",
"upload_time_iso_8601": "2024-12-19T06:28:34.848455Z",
"url": "https://files.pythonhosted.org/packages/95/5d/40146bfebf42c0546aca0900ce4a9656b7c8238945f70513224f0f67ed56/eazyml_cf-0.0.20.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-19 06:28:34",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "eazyml-cf"
}