Skip to main content

WHFDL Feature Selector

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fwhfdl-0.0.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file fwhfdl-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fwhfdl-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for fwhfdl-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c5190005a7a94f965ad8ab201aa0d440458612261114b6e1633caec86867544b
MD5 4ea914ac9a185683b3371de2d7908883
BLAKE2b-256 d849f43dd916c3bb525f17dfe501da76935958dd525b7d32e59669e6b72ec770

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page