Skip to main content

KeelDS is a package to load some datasets from KEEL repository with some normalizations and with split and discretization options.

Project description

KeelDS

KeelDS: A Python package for loading datasets from KEEL repository

KEEL [https://sci2s.ugr.es/keel/datasets.php] is a popular repository for machine learning datasets. This package provides a simple way to load datasets from the KEEL repository. The package also provides a simple way to load the datasets in a cross-validation setting.

Features

  • Load datasets available in the KEEL repository with a single line of code.
  • Load datasets already split into train and test sets and with discretization (with Fayyad algorithm - MDLP[https://github.com/hlin117/mdlp-discretization]).

Installation


Dependencies

  • Python (>= 3.8)
  • Pandas (>= 1.2.4)

You can install KeelDS using pip:

pip install keel-ds

Usage

from keel_ds import load_data
import numpy as np
from catboost import CatBoostClassifier

file_name = 'iris'
folds = load_data(file_name)

evaluations = []
for x_train, y_train, x_test, y_test in folds:
    model = CatBoostClassifier(verbose=False)
    model.fit(x_train, y_train)
    evaluation = model.score(x_test, y_test)
    evaluations.append(evaluation)
    
print(np.mean(evaluations)) # Output = 0.933333333333

Project details


Download files

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

Source Distribution

keel_ds-0.1.14.tar.gz (26.3 MB view details)

Uploaded Source

Built Distribution

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

keel_ds-0.1.14-py3-none-any.whl (26.6 MB view details)

Uploaded Python 3

File details

Details for the file keel_ds-0.1.14.tar.gz.

File metadata

  • Download URL: keel_ds-0.1.14.tar.gz
  • Upload date:
  • Size: 26.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-26-generic

File hashes

Hashes for keel_ds-0.1.14.tar.gz
Algorithm Hash digest
SHA256 94d667731360dcbf7a6e7c2d1cdb09934bfd31d49dc1701aa6cba780120a6881
MD5 5bd1b1d72d91dec530679ec939c3732c
BLAKE2b-256 de7a9a297d51315d52f73b6ebdd195f6e328d3a8d7ddbaf19c54a92ea423c5e9

See more details on using hashes here.

File details

Details for the file keel_ds-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: keel_ds-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 26.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-26-generic

File hashes

Hashes for keel_ds-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 fdbc88b873c355b7b100354b16b605130668e3082b7d9b89f5cc4c6ba5773f27
MD5 d8348258a74f24c24c78ed5fac3e71ad
BLAKE2b-256 ed2a220b358ac6176d4a3fcce8c20799dd3434b4af07e413d5028b2100ac75b6

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