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

Uploaded Python 3

File details

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

File metadata

  • Download URL: keel_ds-0.1.17.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.17.tar.gz
Algorithm Hash digest
SHA256 99d0a481cc8d71528c3c1780734b25b8dd7e07ee622478dda3b0ce6490ffc5cd
MD5 9dde2d285e918c74a391dad4dd405584
BLAKE2b-256 d51856039c2af45ce0559e76d6cd7683e519fdf0a277e48ad3690e2309e741d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keel_ds-0.1.17-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.17-py3-none-any.whl
Algorithm Hash digest
SHA256 0a9d1cd557425de913e22b1e4575fe6d5c0820c8d9fca674d0d28864c1286050
MD5 6e125d9cde800d5e43fd287c7a1a420b
BLAKE2b-256 52df6475f00a15ada0ba2fb0c53fc192096ac9be3522b6bd33afde0281f9247c

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