possee-org / genai-numpy

MIT License
4 stars 6 forks source link

Tracking Examples: np module #63

Closed bmwoodruff closed 3 days ago

bmwoodruff commented 2 weeks ago

This module is all the functions in the base namespace. It's very large. Some functions appear in other name spaces (you can find this by following the See also: sections in the docstring). If that occurs, compare your results from AI with what appears in the other name space.

np

npGroups:

Group 1 Group 2 Group 3 Group 4 Group 5
abs any arctan2 array_equiv asinh
absolute append arctanh array_repr asmatrix
acos apply_along_axis argmax array_split astype
acosh apply_over_axes argmin array_str atan
add arange argsort asanyarray atan2
all arccos argwhere asarray atanh
allclose arccosh around asarray_chkfinite atleast_1d
amax arcsin array ascontiguousarray atleast_2d
amin arcsinh array2string asfortranarray atleast_3d
angle arctan array_equal asin average
Group 6 Group 7 Group 8 Group 9 Group 10
bartlett bitwise_right_shift can_cast conj count_nonzero
base_repr bitwise_xor cbrt conjugate cov
binary_repr blackman ceil convolve cross
bincount block choose copy cumprod
bitwise_and bmat clip copysign cumsum
bitwise_count broadcast_arrays column_stack copyto datetime_as_string
bitwise_invert broadcast_shapes common_type corrcoef datetime_data
bitwise_left_shift broadcast_to compress correlate deg2rad
bitwise_not busday_count concat cos degrees
bitwise_or busday_offset concatenate cosh delete
Group 11 Group 12 Group 13 Group 14 Group 15
diag dstack extract floor fromfile
diag_indices ediff1d eye floor_divide fromfunction
diag_indices_from einsum fabs fmax fromiter
diagflat einsum_path fill_diagonal fmin frompyfunc
diff empty fix fmod fromregex
digitize empty_like flatnonzero format_float_positional full
divide equal flip format_float_scientific full_like
divmod exp fliplr frexp gcd
dot exp2 flipud from_dlpack genfromtxt
dsplit expm1 float_power frombuffer geomspace
Group 16 Group 17 Group 18 Group 19 Group 20
get_include heaviside imag isclose isneginf
get_printoptions histogram in1d iscomplex isposinf
getbufsize histogram2d indices iscomplexobj isreal
geterr histogram_bin_edges info isdtype isrealobj
geterrcall histogramdd inner isfinite isscalar
gradient hsplit insert isfortran issubdtype
greater hstack interp isin iterable
greater_equal hypot intersect1d isinf ix_
hamming i0 invert isnan kaiser
hanning identity is_busday isnat kron
Group 21 Group 22 Group 23 Group 24 Group 25
lcm log10 mask_indices min_scalar_type nancumprod
ldexp log1p matmul minimum nancumsum
left_shift log2 matrix_transpose mintypecode nanmax
less logaddexp max mod nanmean
less_equal logaddexp2 maximum modf nanmedian
lexsort logical_and may_share_memory moveaxis nanmin
linspace logical_not mean multiply nanpercentile
load logical_or median nan_to_num nanprod
loadtxt logical_xor meshgrid nanargmax nanquantile
log logspace min nanargmin nanstd
Group 26 Group 27 Group 28 Group 29 Group 30
nansum outer polydiv prod ravel_multi_index
nanvar packbits polyfit promote_types real
ndim pad polyint ptp real_if_close
negative percentile polymul put reciprocal
nested_iters permute_dims polysub put_along_axis remainder
nextafter piecewise polyval putmask repeat
nonzero place positive quantile require
not_equal poly pow rad2deg reshape
ones polyadd power radians resize
ones_like polyder printoptions ravel result_type
Group 31 Group 32 Group 33 Group 34 Group 35
right_shift savez_compressed shares_memory sort_complex swapaxes
rint searchsorted show_config spacing take
roll select show_runtime split take_along_axis
rollaxis set_printoptions sign sqrt tan
roots setbufsize signbit square tanh
rot90 setdiff1d sin squeeze tensordot
round seterr sinc stack tile
row_stack seterrcall sinh std trace
savetxt setxor1d size subtract transpose
savez shape sort sum trapezoid
Group 36 Group 37 Group 38
tri typename vander
tril union1d var
tril_indices unique vdot
tril_indices_from unique_all vecdot
trim_zeros unique_counts vsplit
triu unique_inverse vstack
triu_indices unique_values where
triu_indices_from unpackbits zeros
true_divide unravel_index zeros_like
trunc unwrap
bmwoodruff commented 3 days ago

After discussion at the triage meeting, adding examples to every function in NumPy is not wanted. Focus on just the functions that don't have examples. After we review the prompt generator, and guarantee that the newly generated examples do indeed add something of more than just marginal value, we can revisit this topic. I'm closing this issue for now.