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

Uploaded Python 3

File details

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

File metadata

  • Download URL: keel_ds-0.1.11.tar.gz
  • Upload date:
  • Size: 26.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/6.5.0-21-generic

File hashes

Hashes for keel_ds-0.1.11.tar.gz
Algorithm Hash digest
SHA256 c8672f9fa944acf498fd371d27d1a6423779917d0cc24a498122aa76c7ca0d97
MD5 aa1666efd40454e8c463a9155a4ba96c
BLAKE2b-256 4cc05bf946d82ba9c7c1dbe8a16f3fe4a3a173137f824b0507bb5c81a07900f4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for keel_ds-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3de3e4e0e047307f806bded5157c204133526182b2c255ea2cbd0d0be18ec17e
MD5 ee7d1f7d0176481a4513d8b8e81430a4
BLAKE2b-256 9f3dfdcb00689665b3b68dd9b297c6e196474c87efb0b054f1d0d80e27364c49

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