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-1.0.2.tar.gz (4.0 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-1.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scikit_sampling-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dc323c6b3ead130c8c405134c0acfd97f5ff35fe18f377df754b50302682abb7
MD5 d7c6ced9c537e879dd2229bc9312397a
BLAKE2b-256 de355e43679a2b1c403b8a4dde0f1c01a4ff48495c1c41979ad7602ef0b644ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_sampling-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 980fd7b006cb5ca84ff8abf037dbb31bad4e8ac1da446425292fc11bbb39ff21
MD5 49f1de2c6533d57d1994674aacc0b6c2
BLAKE2b-256 d5d161635a00a74b34a9c1ea6a776b0ed0b2d9a301759c4833b728ceb493ae59

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