tessl install tessl/pypi-cupy-cuda101@9.6.0CuPy: NumPy & SciPy for GPU (CUDA 10.1 version)
Agent Success
Agent success rate when using this tile
87%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.19x
Baseline
Agent success rate without this tile
73%
Build a data distribution analysis toolkit that computes histograms and statistics for various types of numerical data.
Implement a function analyze_distribution that takes numerical data as input and returns histogram information:
Implement a function analyze_2d_distribution that analyzes the joint distribution of two variables:
Implement a function assign_to_bins that assigns data points to histogram bins:
Implement a function count_occurrences that counts the frequency of integer values:
@generates
def analyze_distribution(data, bins=10):
"""
Compute histogram of 1D data.
Args:
data: 1D array of numerical values
bins: Number of equal-width bins (default: 10)
Returns:
tuple: (counts, bin_edges) where counts is the histogram and bin_edges defines the bins
"""
pass
def analyze_2d_distribution(x_data, y_data, bins=10):
"""
Compute 2D histogram of paired data.
Args:
x_data: 1D array of x coordinates
y_data: 1D array of y coordinates
bins: Number of bins for each dimension, can be int or tuple of ints
Returns:
tuple: (counts_2d, x_edges, y_edges) where counts_2d is the 2D histogram
"""
pass
def assign_to_bins(data, bin_edges):
"""
Determine which bin each value belongs to.
Args:
data: 1D array of numerical values
bin_edges: Array defining bin boundaries
Returns:
array: Bin indices for each data point
"""
pass
def count_occurrences(data, minlength=None):
"""
Count frequency of non-negative integer values.
Args:
data: 1D array of non-negative integers
minlength: Minimum length of output array (optional)
Returns:
array: Frequency count where index i contains count of value i
"""
passProvides GPU-accelerated array computing with histogram functionality.