MCPcopy Create free account

hub / github.com/allenai/mmc4 / functions

Functions20 in github.com/allenai/mmc4

↓ 4 callersFunctionbase_solve
Gives hungarian solve for a non-square matrix. it's roughly from: NOTE: this ** MINIMIZES COST **. So, if you're handing sims, make sure to
scripts/linear_assignment.py:12
↓ 2 callersMethod_test_random_100
(self, dtype)
scripts/linear_assignment.py:76
↓ 2 callersFunctiondownload_images_multiprocess
Download images with multiprocessing
scripts/download_images.py:79
↓ 2 callersFunctionsave_status
(args, shelve_filename)
scripts/download_images.py:175
↓ 1 callersFunction_get_local_image_filename
(row)
scripts/download_images.py:112
↓ 1 callersFunctioncall
(cmd)
scripts/download_images.py:69
↓ 1 callersFunctiongather_image_info
Gather image info from the input jsonl
scripts/download_images.py:191
↓ 1 callersFunctiongather_image_info_shard
Gather image info from shard
scripts/download_images.py:205
↓ 1 callersFunctionget_image_assignments
returns a list assignments of length N_images such that assignments[i] is the sentence index that image i was assigned to.
scripts/compute_assignments.py:18
↓ 1 callersFunctionlocal
(args)
scripts/download_images.py:219
↓ 1 callersFunctionmain
()
scripts/download_images.py:240
↓ 1 callersFunctionmain
()
scripts/compute_assignments.py:33
↓ 1 callersFunctionparse_args
()
scripts/download_images.py:40
↓ 1 callersFunctionparse_args
()
scripts/compute_assignments.py:12
Function_df_split_apply
(tup_arg)
scripts/download_images.py:73
Functiondownload_image
(row)
scripts/download_images.py:116
Methodtest_1024
(self)
scripts/linear_assignment.py:116
Methodtest_basic
(self)
scripts/linear_assignment.py:66
Methodtest_random_100_float32
(self)
scripts/linear_assignment.py:113
Methodtest_random_100_float64
(self)
scripts/linear_assignment.py:110