Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /proc/thread-self/root/usr/local/lib/python3.8/dist-packages/ravenclaw/sampling/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : //proc/thread-self/root/usr/local/lib/python3.8/dist-packages/ravenclaw/sampling/split_data.py

from pandas import DataFrame
from math import ceil


def split_data(data, split_size=None, num_splits=None):
	"""
	:type data: DataFrame
	:type split_size: int
	:type num_splits: int
	:rtype: generator
	"""
	if split_size is None and num_splits is None:
		raise ValueError('either size or num_splits should be provided')
	if split_size is None:
		split_size = len(data) / num_splits
	if num_splits is None:
		num_splits = ceil(len(data) / split_size)

	for i in range(num_splits):
		start = round(i * split_size)
		end = min(round((i + 1) * split_size), len(data))
		this_data = data.iloc[start:end]
		yield this_data

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net