MCPcopy Create free account

hub / github.com/HazyResearch/evaporate / functions

Functions201 in github.com/HazyResearch/evaporate

↓ 1 callersFunctiondirectly_extract_from_chunks_w_value
( file2chunks, sample_files, manifest_session, overwrite_cache=False, topic=None, us
evaporate/schema_identification.py:14
↓ 1 callersMethoddp_learn_params
Learn the data programming parameters alpha and beta. Args: - with_label: Do we use y or not? If using label, use the train set and
evaporate/weak_supervision/methods.py:786
↓ 1 callersFunctionest_accs
(m, vote, gold)
evaporate/weak_supervision/pgm.py:120
↓ 1 callersFunctionest_balance
(gold, n)
evaporate/weak_supervision/pgm.py:134
↓ 1 callersFunctionevaluate_extraction_quality
(run_string, args, gold_extractions_file, gold_extractions_file_dir, gold_attributes=None)
evaporate/evaluate_synthetic.py:150
↓ 1 callersFunctionevaluate_openie_quality
( run_string, args, gold_extractions_file, sample_files=None, slic
evaporate/evaluate_synthetic.py:311
↓ 1 callersFunctionevaluate_schema_identification
(run_string, args, group_name, train_size=-1)
evaporate/evaluate_synthetic.py:31
↓ 1 callersMethodexpectation
(self, C)
evaporate/weak_supervision/pgm.py:70
↓ 1 callersFunctionfilter_file2chunks
(file2chunks, sample_files, attribute)
evaporate/profiler_utils.py:364
↓ 1 callersFunctionget_all_extractions
( file2chunks, file2contents, sample_files, attribute, manifest_sessi
evaporate/profiler.py:539
↓ 1 callersFunctionget_all_files
(data_dir)
evaporate/utils.py:72
↓ 1 callersFunctionget_args
(profiler_args)
evaporate/configs.py:266
↓ 1 callersFunctionget_attribute_parts
(attribute)
evaporate/profiler_utils.py:365
↓ 1 callersFunctionget_data
Load in dataset from task_name depending on where files are saved. - num_elts = number of ``choices'' to use in the multiple-choice setup.
evaporate/weak_supervision/run_ws.py:17
↓ 1 callersFunctionget_data_lake_info
(args)
evaporate/configs.py:16
↓ 1 callersFunctionget_data_lake_info
(args, data_lake)
evaporate/run_profiler.py:20
↓ 1 callersFunctionget_directory_hierarchy
(data_dir)
evaporate/utils.py:82
↓ 1 callersFunctionget_experiment_args
()
evaporate/configs.py:32
↓ 1 callersFunctionget_file_attribute
(attribute)
evaporate/evaluate_synthetic_utils.py:40
↓ 1 callersFunctionget_file_contents
(file)
evaporate/profiler_utils.py:347
↓ 1 callersFunctionget_flattened_items
(content, chunk_size=500)
evaporate/profiler_utils.py:235
↓ 1 callersFunctionget_html_parse
(content, chunk_size=5000, mode="train", remove_tables=False, body_only=False)
evaporate/profiler_utils.py:255
↓ 1 callersFunctionget_manifest_sessions
(MODELS, MODEL2URL=None, KEYS=[])
evaporate/utils.py:163
↓ 1 callersFunctionget_metadata_string_w_value
(field2value, exclude=[], key=0)
evaporate/schema_identification.py:90
↓ 1 callersFunctionget_min_off_diagonal
(J_hat)
evaporate/weak_supervision/run_ws.py:167
↓ 1 callersFunctionget_probs
(votes, indices_train, golds_train, acc_train, num_lfs_test)
evaporate/weak_supervision/ws_utils.py:83
↓ 1 callersFunctionget_probs
(m, votes, accs, balance)
evaporate/weak_supervision/pgm.py:146
↓ 1 callersMethodget_probs
Computes the probability Pr(y = 1 | votes).
evaporate/weak_supervision/binary_deps.py:200
↓ 1 callersFunctionget_response
( prompt, manifest, overwrite=False, max_toks=10, stop_token=None, gold_choices=[],
evaporate/utils.py:244
↓ 1 callersFunctionget_run_string
( data_lake, today, file_groups, profiler_args, do_end_to_end, train_size, dynamicbackoff, models )
evaporate/configs.py:5
↓ 1 callersFunctionget_run_string
( data_lake, today, file_groups, profiler_args, do_end_to_end, train_size, dynamicbackoff, models )
evaporate/run_profiler.py:88
↓ 1 callersFunctionget_structure
(dataset_name, profiler_args)
evaporate/utils.py:116
↓ 1 callersFunctionget_top_deps_from_inverse_sig
(J, k)
evaporate/weak_supervision/run_ws.py:101
↓ 1 callersFunctionget_txt_parse
(content, chunk_size=5000, mode="train")
evaporate/profiler_utils.py:309
↓ 1 callersFunctionget_unique_file_types
(files)
evaporate/utils.py:103
↓ 1 callersFunctionidentify_attributes
(profiler_args, data_dict, evaluation = False)
evaporate/run_profiler.py:262
↓ 1 callersFunctionis_substr
(find, data)
evaporate/profiler_utils.py:503
↓ 1 callersFunctionis_triangulated
If a graph is triangulated (e.g. if a junction tree factorization exists).
evaporate/weak_supervision/binary_deps.py:234
↓ 1 callersFunctionlearn_neighborhood
Learn the neighborhood graph for a vertex. Args: - m: number of prompts - vertex: the index of the prompt we are selecting as the re
evaporate/weak_supervision/binary_deps.py:287
↓ 1 callersFunctionlearn_neighborhood_multi
(m, vertex, votes, gold, accs, l1_lambda, classes, epochs = 50000)
evaporate/weak_supervision/binary_deps.py:333
↓ 1 callersFunctionlearn_structure_multiclass
(L, k)
evaporate/weak_supervision/run_ws.py:156
↓ 1 callersFunctionmain
( run_string, args, profiler_args, data_lake = "wiki_nba_players",
evaporate/evaluate_synthetic.py:504
↓ 1 callersFunctionmain
()
evaporate/run_profiler.py:494
↓ 1 callersFunctionmain
()
evaporate/weak_supervision/make_pgm.py:834
↓ 1 callersFunctionmain
()
evaporate/weak_supervision/binary_deps.py:375
↓ 1 callersFunctionmain
()
evaporate/weak_supervision/pgm.py:165
↓ 1 callersFunctionmean_pooling
(token_embeddings, mask)
evaporate/retrieval.py:5
↓ 1 callersFunctionmeasure_openie_results
( attributes, args, profiler_args, run_string, gold_attributes, attributes_to_remo
evaporate/run_profiler.py:174
↓ 1 callersFunctionpick_best_prompt
(m, vote, gold, n)
evaporate/weak_supervision/pgm.py:156
↓ 1 callersFunctionprerun_profiler
(profiler_args)
evaporate/run_profiler.py:224
↓ 1 callersFunctionrerank_metadata
( base_extraction_count, field2value, topic, manifest_session, overwrite_cache )
evaporate/schema_identification.py:195
↓ 1 callersFunctionrun_experiment
(profiler_args)
evaporate/run_profiler.py:334
↓ 1 callersMethodsample
(self)
evaporate/weak_supervision/make_pgm.py:170
↓ 1 callersFunctionset_precision
(pred, gt)
evaporate/evaluate_synthetic.py:19
↓ 1 callersFunctionset_profiler_args
(information)
evaporate/configs.py:337
↓ 1 callersFunctionset_recall
(pred, gt)
evaporate/evaluate_synthetic.py:14
↓ 1 callersFunctionstructure_learning
Structure learning algorithm (Ising model selection) from Ravikumar (2010). Args: - votes: n_train x m array of training votes - gol
evaporate/weak_supervision/binary_deps.py:244
↓ 1 callersFunctiontest4
()
evaporate/weak_supervision/make_pgm.py:555
↓ 1 callersFunctiontrim_chunks
(chunk, attribute, window=20)
evaporate/profiler.py:413
Method__init__
(self, prompt)
evaporate/prompts.py:285
Method__init__
(self, profiler_args)
evaporate/main.py:18
Method__init__
(self, m, potentials, thetas = None, vals = [-1, 1], )
evaporate/weak_supervision/make_pgm.py:18
Method__init__
Initialize the PGM by computing its junction tree factorization (c_tree and c_data) and by computing individual LF accuracy a
evaporate/weak_supervision/binary_deps.py:18
Method__init__
(self, train_votes, train_gold, test_votes, test_gold, classes, abstains=False, abstain_value=-1)
evaporate/weak_supervision/methods.py:1016
Method__init__
(self, m, potentials, thetas = None, vals = [-1, 1], )
evaporate/weak_supervision/pgm.py:11
Method_get_covariance_y
(self)
evaporate/weak_supervision/make_pgm.py:106
Method_get_scaled
(self)
evaporate/weak_supervision/binary_deps.py:49
Methodapply_functions
(self)
evaporate/main.py:183
Methodaug_covariance
(self, rvs)
evaporate/weak_supervision/make_pgm.py:109
Methodaug_covariance_y
(self, rvs, y)
evaporate/weak_supervision/make_pgm.py:132
Functionclean_metadata
(field)
evaporate/profiler_utils.py:360
Methodconditional_entropy
Computes H(Y | votes) ~= -1/n sum_i sum_y' Pr(y = y' | votes_j) log Pr(y = y' | votes_j). Uses learned distribution as true
evaporate/weak_supervision/methods.py:597
Methodconditional_entropy_mv
Computes H(Y | MV output) = -1/n sum_i sum_k Pr(y = y_k | y-hat_i) log Pr(y = y_k | y-hat_i)
evaporate/weak_supervision/methods.py:660
Methodconditional_entropy_singleton
Computes H(Y | WS output) = -1/n sum_i sum_j Pr(y-hat = y_j | lfs(x_i)) * sum_k Pr(y = y_k | y-hat = y_j) log Pr(y = y_k | y-hat = y_j)
evaporate/weak_supervision/methods.py:629
Methoddata_programming
For multi-class, data programming reduces into one-vs-all subproblems and picking the highest Pr(y | votes) from each of those.
evaporate/weak_supervision/methods.py:1048
Methoddirect_extract
(self, use_retrieval_model = True, is_getting_sample = False, gold = "")
evaporate/main.py:52
Functionestimate_matrix
(m, n, L)
evaporate/weak_supervision/ws_utils.py:115
Methodexecute
(self)
evaporate/prompts.py:288
Methodexp_weight
Weighting rule 1: Pr(y | votes) ~ sum_i 1{vote_i = y} * exp(-eta*loss_i) Weighting rule 2: Pr(y | votes) ~ exp(sum_i eta * accuracy *
evaporate/weak_supervision/methods.py:956
Methodflying_squid
For multi-class, FlyingSquid reduces into one-vs-all subproblems and picking the highest Pr(y | votes) from each of those.
evaporate/weak_supervision/methods.py:1020
Methodget_attribute
(self, do_end_to_end = False)
evaporate/main.py:41
Functionget_attribute_function
(profiler_args, data_dict, attribute)
evaporate/run_profiler.py:306
Methodget_clique_probs_unlabeled
(self, idxs, on_all_data=True)
evaporate/weak_supervision/methods.py:407
Methodget_extract_functions
(self)
evaporate/main.py:101
Functionget_feature_vector
(vote_vectors, include_pairwise=False, include_singletons=True)
evaporate/weak_supervision/ws_utils.py:155
Functionget_files_in_group
(dir_path)
evaporate/utils.py:153
Functionget_nb_accuracy
(num_examples_test, num_lfs_test, predictions_test, label_name_to_int, golds_test, indices_train, golds_train,
evaporate/weak_supervision/ws_utils.py:90
Functionget_probabilties
(num_lfs, num_examples, predictions, label_name_to_int)
evaporate/weak_supervision/ws_utils.py:4
Functionget_vote_vectors
(num_samples, num_lfs, predictions, label_name_to_int)
evaporate/weak_supervision/ws_utils.py:131
Methodlogistic_regression
Logistic regression baseline. Args: - pairwise: if true, we scale everything to [-1, 1] and look at vote_i * vote_j as (m c
evaporate/weak_supervision/methods.py:884
Methodsave_results
()
evaporate/main.py:38
Functionset_profiler_args
(profiler_args)
evaporate/profiler_utils.py:9
Functionsignal_handler
(signum, frame)
evaporate/profiler.py:39
Methodsnorkel_lm
Use Snorkel AI's label model. Under the hood: Metal "forward" algorithm.
evaporate/weak_supervision/methods.py:761
Functiontest0
()
evaporate/weak_supervision/make_pgm.py:376
Functiontest1
()
evaporate/weak_supervision/make_pgm.py:413
Functiontest2
()
evaporate/weak_supervision/make_pgm.py:451
Functiontest3
()
evaporate/weak_supervision/make_pgm.py:503
Functiontest5
()
evaporate/weak_supervision/make_pgm.py:643
Functiontest6
()
evaporate/weak_supervision/make_pgm.py:734
← previousnext →101–200 of 201, ranked by callers