Skip to main content

A set of python modules for dataset sampling

Project description

🧪 Scikit-Sampling

GitHub MIT license GitHub Workflow Status

Scikit-Sampling (or sksampling) is a Python library for dataset sampling techniques. It provides a unified API for common sampling strategies, making it easy to integrate into your data science and machine learning workflows.

Installation

You can install sksampling using pip:

pip install scikit-sampling

Features

sksampling offers a range of sampling methods, including:

  • sample_size: Computes the ideal sample size based confidence level and interval.

Usage

sksampling follows the scikit-learn API, making it intuitive to use.

from sksampling import sample_size

# Example usage
population_size: int = 100_000
confidence_level: float = 0.95
confidence_interval: float = 0.02
sample_size(population_size, confidence_level, confidence_interval) # approx 2345

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

scikit_sampling-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

scikit_sampling-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file scikit_sampling-0.1.0.tar.gz.

File metadata

  • Download URL: scikit_sampling-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for scikit_sampling-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4d177ee9ab5be786627f6d53ac6e650eea4d832cee5d38ed04fddbb140b92a66
MD5 f486e09b12cc9eeb5d53bbe689e52d40
BLAKE2b-256 255f693af5b5c9c41f67a581994a9e2e1d0ade82c487ceff72304b05e5f63f68

See more details on using hashes here.

File details

Details for the file scikit_sampling-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for scikit_sampling-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14f94e64b9ce3c8ccfb22b6a16f9be26fc312bd32e58638642028f9ac1bd0482
MD5 e68db547ba76ee49370079b2ddc44fe0
BLAKE2b-256 2c2475e6a2b231ff092a7a2fd67f29c57abdb392bb05f38a1ebeb93619296ded

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