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:
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.
Metadata
Release files for FWHFDL 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fwhfdl-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / fwhfdl-0.0.2-py3-none-any.whl
| Download URL | fwhfdl-0.0.2-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5190005a7a94f965ad8ab201aa0d440458612261114b6e1633caec86867544b
|
|
BLAKE2b-256 checksum How to use checksums |
d849f43dd916c3bb525f17dfe501da76935958dd525b7d32e59669e6b72ec770
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for FWHFDL 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.