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.13.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.13-py3-none-any.whl (26.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keel_ds-0.1.13.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.13.tar.gz
Algorithm Hash digest
SHA256 62c7cf2016beb37d675315a0e4eb9f1e518517865cf72f7ef52467cf678e2f95
MD5 dba7c52a84a0a3a4a1d3587ed0cb2799
BLAKE2b-256 041fe8d313ee75d2d035da5a9fc0e778d41c29a3a6840f22faf81ef30a1da063

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keel_ds-0.1.13-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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 897f81dcce76422405f662ab9ed0a0c1e0a1a5f175dab59a9a98456774866b50
MD5 41bebd55ccc91f546cef0d89d7670da3
BLAKE2b-256 22e81e3f76255cc74d5011209de08c50e86d0b2d369ce7c3cfcaf536cb9245aa

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