MCPcopy Create free account

hub / github.com/AmenRa/ranx / functions

Functions578 in github.com/AmenRa/ranx

↓ 1 callersFunctioncomb_max
r"""Computes CombMAX as proposed by [Fox et al.](https://trec.nist.gov/pubs/trec2/papers/txt/23.txt). ```bibtex @inproceedings{DBLP:conf/
ranx/fusion/comb_max.py:44
↓ 1 callersFunctioncomb_med
r"""Computes CombMED as proposed by [Fox et al.](https://trec.nist.gov/pubs/trec2/papers/txt/23.txt). ```bibtex @inproceedings{DBLP:conf/
ranx/fusion/comb_med.py:44
↓ 1 callersFunctioncomb_min
r"""Computes CombMIN as proposed by [Fox et al.](https://trec.nist.gov/pubs/trec2/papers/txt/23.txt). ```bibtex @inproceedings{DBLP:conf/
ranx/fusion/comb_min.py:44
↓ 1 callersFunctioncompute_statistical_significance
Used internally.
ranx/statistical_tests/__init__.py:56
↓ 1 callersFunctionconvert_qrels
(qrels)
ranx/meta/evaluate.py:43
↓ 1 callersFunctionconvert_run
(run)
ranx/meta/evaluate.py:51
↓ 1 callersFunctioncreate_bulk
(q_ids, doc_ids, scores)
ranx/data_structures/common.py:121
↓ 1 callersFunctiondescending_sort
(x)
ranx/utils.py:12
↓ 1 callersFunctiondescending_sort_parallel
(x)
ranx/utils.py:17
↓ 1 callersFunctiondownload
(id: str)
ranx/io.py:45
↓ 1 callersFunctiondownload_file
Execute the correct download operation. Depending on the size of the file online and offline, resume the download if the file offline is small
ranx/downloader.py:49
↓ 1 callersFunctionestimate_bayesfuse_log_odds
(qrels: Qrels, runs: Run)
ranx/fusion/bayesfuse.py:82
↓ 1 callersFunctionestimate_probs
(qrels: Qrels, run: Run)
ranx/fusion/common.py:56
↓ 1 callersFunctionestimate_segfuse_probs
(qrels: Qrels, runs: List[Run])
ranx/fusion/segfuse.py:39
↓ 1 callersFunctionestimate_segment_probs
(hit_lists, n_segments)
ranx/fusion/probfuse.py:20
↓ 1 callersFunctionestimate_segment_probs
(hit_lists)
ranx/fusion/segfuse.py:19
↓ 1 callersFunctionestimate_segment_probs_multi
(hit_lists: List, n_segments: int)
ranx/fusion/probfuse.py:42
↓ 1 callersFunctionestimate_segment_probs_multi
(hit_lists: List)
ranx/fusion/segfuse.py:35
↓ 1 callersFunctionextract_metric_and_params
(metric)
ranx/meta/evaluate.py:19
↓ 1 callersFunctionfisher_randomization_test
Performs (approximated) Fisher's Randomization Test. Null hypothesis: system A (control) and system B (treatment) are identical (i.e., syste
ranx/statistical_tests/fisher_randomization_test.py:16
↓ 1 callersMethodformat_score
(self, score)
ranx/data_structures/optimization_report.py:75
↓ 1 callersMethodfrom_df
Convert a Pandas DataFrame to ranx.Qrels. Args: df (pandas.DataFrame): Qrels as Pandas DataFrame. q_id_col (str, opti
ranx/data_structures/qrels.py:277
↓ 1 callersFunctionfusion_switch
(method)
ranx/fusion/__init__.py:62
↓ 1 callersFunctiongenerate_qrels
(query_count, max_relevant_per_query)
tests/unit/ranx/data_structures/report_test.py:8
↓ 1 callersFunctiongenerate_run
(query_count, max_result_count)
tests/unit/ranx/data_structures/report_test.py:18
↓ 1 callersFunctionget_candidates
(runs)
ranx/normalization/borda_norm.py:15
↓ 1 callersFunctionget_metric_label
(m)
ranx/ranxhub.py:24
↓ 1 callersMethodget_metric_label
(self, m)
ranx/data_structures/optimization_report.py:67
↓ 1 callersFunctionget_path
(id: str)
ranx/io.py:27
↓ 1 callersMethodget_phantoms_for_latex
(self, model, metric)
ranx/data_structures/report.py:163
↓ 1 callersFunctionget_possible_weights
(step)
ranx/fusion_optimization/optimize_weights.py:11
↓ 1 callersMethodget_query_ids
Returns query ids.
ranx/data_structures/run.py:127
↓ 1 callersMethodget_superscript_for_latex
(self, model, metric)
ranx/data_structures/report.py:151
↓ 1 callersMethodget_superscript_for_table
(self, model, metric)
ranx/data_structures/report.py:99
↓ 1 callersFunctionget_tmp_path
(id: str)
ranx/io.py:34
↓ 1 callersFunctionget_trial_configs
(weights, n_runs)
ranx/fusion_optimization/optimize_weights.py:16
↓ 1 callersFunctionget_url
(id: str)
ranx/io.py:41
↓ 1 callersFunctionhas_hyperparams
(method: str)
ranx/fusion_optimization/__init__.py:36
↓ 1 callersFunctionhome_path
()
ranx/io.py:13
↓ 1 callersFunctioninterpolated_precision_at_recall
r"""Compute Interpolated Precision at Recall. Args: qrels (Union[np.ndarray, numba.typed.List]): IDs and relevance scores of _relevant_ d
ranx/metrics/interpolated_precision_at_recall.py:76
↓ 1 callersFunctionisr
r"""Computes ISR as proposed by [Mourão et al.](https://www.sciencedirect.com/science/article/abs/pii/S0895611114000664). ```bibtex @art
ranx/fusion/isr.py:39
↓ 1 callersFunctionload_json
(path: str)
ranx/io.py:76
↓ 1 callersFunctionlog_isr
r"""Computes Log_ISR as proposed by [Mourão et al.](https://www.sciencedirect.com/science/article/abs/pii/S0895611114000664). ```bibtex
ranx/fusion/log_isr.py:45
↓ 1 callersFunctionmapfuse
r"""Computes MAPFuse as proposed by [Lillis et al.](https://dl.acm.org/doi/10.1145/1835449.1835508). ```bibtex @inproceedings{DBLP:conf/sigir
ranx/fusion/mapfuse.py:40
↓ 1 callersFunctionmax_norm
Apply `max norm` to a run.
ranx/normalization/max_norm.py:46
↓ 1 callersFunctionmetric_switch
(metric)
ranx/metrics/__init__.py:35
↓ 1 callersFunctionpaired_student_t_test
Two-sided Paired Student's t-Test. Null hypothesis: system A (control) and system B (treatment) are identical (i.e., system A has no effect
ranx/statistical_tests/paired_student_t_test.py:4
↓ 1 callersFunctionpermute
(x)
ranx/statistical_tests/fisher_randomization_test.py:6
↓ 1 callersFunctionposfuse
r"""Computes PosFuse as proposed by [Lillis et al.](https://dl.acm.org/doi/10.1145/1835449.1835508). ```bibtex @inproceedings{DBLP:conf/sigir
ranx/fusion/posfuse.py:40
↓ 1 callersFunctionrank_norm
Apply `rank norm` to a run.
ranx/normalization/rank_norm.py:40
↓ 1 callersFunctionsave_json
(x: dict, path: str)
ranx/io.py:71
↓ 1 callersFunctionsegfuse
r"""Computes SegFuse as proposed by [Shokouhi](https://link.springer.com/chapter/10.1007/978-3-540-78646-7_33). ```bibtex @inproceedings{
ranx/fusion/segfuse.py:76
↓ 1 callersMethodset_relevance_level
Sets relevance level.
ranx/data_structures/qrels.py:139
↓ 1 callersFunctionsort_dict_by_value
(d)
ranx/data_structures/common.py:76
↓ 1 callersFunctionsum_norm
Apply `sum norm` to a run.
ranx/normalization/sum_norm.py:46
↓ 1 callersFunctionsum_odds
(runs: List[Run])
ranx/fusion/bayesfuse.py:48
↓ 1 callersFunctiontmp_path
()
ranx/io.py:20
↓ 1 callersMethodto_dataframe
Convert Qrels to Pandas DataFrame with the following columns: `q_id`, `doc_id`, and `score`. Returns: pandas.DataFrame: Qrels as
ranx/data_structures/qrels.py:175
↓ 1 callersMethodto_typed_list
Convert Qrels to Numba Typed List. Used internally.
ranx/data_structures/qrels.py:158
↓ 1 callersFunctiontukey_hsd_test
Performs Tukey's Honestly Significant Difference (HSD) Test.
ranx/statistical_tests/tukey_hsd_test.py:7
↓ 1 callersFunctiontyped_list_argosrt
(typed_list)
ranx/data_structures/common.py:55
↓ 1 callersFunctionzmuv_norm
Apply `zmuv norm` to a run.
ranx/normalization/zmuv_norm.py:45
Method__delitem__
(self, key)
ranx/data_structures/frozenset_dict.py:16
Method__getitem__
(self, q_id)
ranx/data_structures/run.py:385
Method__getitem__
(self, q_id)
ranx/data_structures/qrels.py:357
Method__getitem__
(self, key)
ranx/data_structures/frozenset_dict.py:10
Method__init__
(self, run: Dict[str, Dict[str, float]] = None, name: str = None)
ranx/data_structures/run.py:47
Method__init__
(self, qrels: Dict[str, Dict[str, int]] = None, name: str = None)
ranx/data_structures/qrels.py:62
Method__init__
( self, model_names: List[str], results: Dict, comparisons: FrozensetDict,
ranx/data_structures/report.py:70
Method__init__
( self, method: str, configs: List[str], results: List[float], metric:
ranx/data_structures/optimization_report.py:51
Method__init__
(self, arg=None)
ranx/data_structures/frozenset_dict.py:5
Method__iter__
(self)
ranx/data_structures/frozenset_dict.py:19
Method__len__
(self)
ranx/data_structures/run.py:388
Method__len__
(self)
ranx/data_structures/qrels.py:360
Method__len__
(self)
ranx/data_structures/frozenset_dict.py:22
Method__repr__
(self)
ranx/data_structures/run.py:391
Method__repr__
(self)
ranx/data_structures/qrels.py:363
Method__repr__
(self)
ranx/data_structures/report.py:354
Method__repr__
(self)
ranx/data_structures/optimization_report.py:110
Method__setitem__
(self, key, value)
ranx/data_structures/frozenset_dict.py:13
Method__str__
(self)
ranx/data_structures/run.py:394
Method__str__
(self)
ranx/data_structures/qrels.py:366
Method__str__
(self)
ranx/data_structures/report.py:357
Method__str__
(self)
ranx/data_structures/optimization_report.py:117
Methodadd
Add a query and its relevant documents with the associated relevance score. Args: q_id (str): Query ID doc_ids (List[
ranx/data_structures/run.py:97
Methodadd
Add a query and its relevant documents with the associated relevance score judgment. Args: q_id (str): Query ID doc_i
ranx/data_structures/qrels.py:109
Functionaverage_precision
r"""Compute Average Precision. Average Precision is the average of the Precision scores computed after each relevant document is retrieved.<br />
ranx/metrics/average_precision.py:54
Functionconvert_results_dict_list_to_run
(q_ids, results_dict_list)
ranx/data_structures/generic.py:20
Functioncreate_empty_results_dict_list
(length)
ranx/data_structures/generic.py:15
Functiondataframe_to_dict
(df: DataFrame, q_id_col: str, doc_id_col: str, score_col: str)
ranx/utils.py:66
Functiondcg
r"""Compute Discounted Cumulative Gain (DCG) as proposed by [Järvelin et al.](http://doi.acm.org/10.1145/582415.582418).<br /> If k > 0, only the
ranx/metrics/ndcg.py:77
Functiondcg_burges
r"""Compute Discounted Cumulative Gain (DCG) at k as proposed by [Burges et al.](https://doi.org/10.1145/1102351.1102363).<br /> If k > 0, only th
ranx/metrics/ndcg.py:189
Functionextract_scores
Extract the scores from a given results dictionary.
ranx/fusion/common.py:66
Methodfrom_file
Parse a qrels file into ranx.Qrels. Supported formats are JSON, TREC qrels, and gzipped TREC qrels. Correct import behavior is inferred from the file
ranx/data_structures/qrels.py:251
Methodfrom_ir_datasets
Convert `ir-datasets` qrels into ranx.Qrels. It automatically downloads data if missing. Args: dataset_id (str): ID of the detaset
ranx/data_structures/qrels.py:342
Methodfrom_parquet
Convert a Parquet file to ranx.Qrels. Args: path (str): File path. q_id_col (str, optional): Query IDs column. Defaul
ranx/data_structures/qrels.py:313
Methodfrom_ranxhub
Download and load a ranx.Run from ranxhub. Args: path (str): Run ID. Returns: Run: ranx.Run
ranx/data_structures/run.py:364
Functionfuse
( runs: List[Run], norm: str = "min-max", method: str = "wsum", params: dict = None, )
ranx/meta/fuse.py:8
Methodget_doc_ids_and_scores
Returns doc ids and relevance scores.
ranx/data_structures/run.py:131
Methodget_doc_ids_and_scores
Returns doc ids and relevance judgments.
ranx/data_structures/qrels.py:147
← previousnext →201–300 of 578, ranked by callers