possee-org / genai-numpy

MIT License
4 stars 6 forks source link

Tracking Examples: remaining other modules #65

Closed bmwoodruff closed 3 months ago

bmwoodruff commented 3 months ago

The modules here are not tracked in a specific Tracking Examples issue. There are a lot of small modules with just a few functions. The other places are probably a better place to start.

np.ctypeslib

We can probably skip this one, as it's most likely all C code. If you want to create an example generator for C code, then please do so, and test it against these.

np.ctypeslib Groups:

Group 1
as_array
as_ctypes
as_ctypes_type
load_library
ndpointer

np.emath

np.emath Groups:

Group 1
arccos
arcsin
arctanh
log
log10
log2
logn
power
sqrt

np.f2py

Not sure if we want to touch this one, as it involves Fortan to python. np.f2py Groups:

Group 1
get_include
run_main

np.fft

np.fft Groups:

Group 1 Group 2
fft ihfft
fft2 irfft
fftfreq irfft2
fftn irfftn
fftshift rfft
hfft rfft2
ifft rfftfreq
ifft2 rfftn
ifftn
ifftshift

np.lib

np.lib Groups:

Group 1
add_docstring
add_newdoc

np.lib.array.utils

np.lib.array.utils Groups:

Group 1
byte_bounds
normalize_axis_index
normalize_axis_tuple

np.lib.introspect

np.lib.introspect Groups:

Group 1
opt_func_info

np.lib.scimath

np.lib.scimath Groups:

Group 1
arccos
arcsin
arctanh
log
log10
log2
logn
power
sqrt

np.lib.stride.tricks

np.lib.stride.tricks Groups:

Group 1
as_strided
sliding_window_view

np.rec

np.rec Groups:

Group 1
array
find_duplicate
fromarrays
fromfile
fromrecords
fromstring
bmwoodruff commented 3 months 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.