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

Uploaded Python 3

File details

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

File metadata

  • Download URL: keel_ds-0.1.16.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.16.tar.gz
Algorithm Hash digest
SHA256 a76794d3cb4237c8f3b5cdf7c877a6372a08ba75908560f0a80623844d44836a
MD5 5afb7d494c5245954ffb2f7b69deb82e
BLAKE2b-256 d00f56a08233f383f77ac5444a499aa21a8ab7d8ec4eec31968473638208ad60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keel_ds-0.1.16-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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 77b3f3239c0d6dde61b67844c496a9bf97200a5b783c76acd309eb35b49a19f9
MD5 574a5e4bfd90de71e97c9e6add507a15
BLAKE2b-256 dbb924c7c60674b641e8b3ac643d083cb5c3c62b1768721e2d76199c347f502c

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