Metadata-Version: 2.4
Name: FWHFDL
Version: 0.0.2
Summary: WHFDL Feature Selector
Project-URL: source, https://github.com/arman-daliri/WHFDL
Author-email: Arman Daliri <daliriwork2@gmail.com>
Maintainer-email: Mohammad Mahdi Mir <standardret@proton.me>
License-Expression: MIT
License-File: LICENSE
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Requires-Dist: numpy
Requires-Dist: scikit-learn
Description-Content-Type: text/markdown

# FWHFDL

A package for feature selection with WHFDL.

This package is part of "WHFDL: an explainable method based on World Hyper-heuristic and Fuzzy Deep Learning approaches for gastric cancer detection using metabolomics data" article's experiment.

Example:

```python
import pandas as pd
from sklearn.model_selection import train_test_split

import FWHFDL as fw

data_path = 'data.csv'

data = pd.read_csv(data_path)
X = data.drop(['state'], axis=1)
y = data['state']
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)

fwhh = fw.FWHH()
fwhh.data_set(X_train, y_train, X_test, y_test)
fwhh.problem_set()
# iteration of each algorithm
fwhh.problem.MaxIt = 15
# iteration of whh
fwhh.MaxIt = 15
fwhh.algs_set()
fwhh.pop_set()
res = fwhh.run()
print("Best Cost:", res['best_cost'])
print("Selected Num:", res['selected_num'])
print("Selected:", res['selected'])
```
You can find the "data.csv" [here](https://github.com/arman-daliri/WHFDL/tree/main/Data).
