Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AmenRa/ranx
/ functions
Functions
578 in github.com/AmenRa/ranx
⨍
Functions
578
◇
Types & classes
5
↓ 1 callers
Function
comb_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 callers
Function
comb_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 callers
Function
comb_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 callers
Function
compute_statistical_significance
Used internally.
ranx/statistical_tests/__init__.py:56
↓ 1 callers
Function
convert_qrels
(qrels)
ranx/meta/evaluate.py:43
↓ 1 callers
Function
convert_run
(run)
ranx/meta/evaluate.py:51
↓ 1 callers
Function
create_bulk
(q_ids, doc_ids, scores)
ranx/data_structures/common.py:121
↓ 1 callers
Function
descending_sort
(x)
ranx/utils.py:12
↓ 1 callers
Function
descending_sort_parallel
(x)
ranx/utils.py:17
↓ 1 callers
Function
download
(id: str)
ranx/io.py:45
↓ 1 callers
Function
download_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 callers
Function
estimate_bayesfuse_log_odds
(qrels: Qrels, runs: Run)
ranx/fusion/bayesfuse.py:82
↓ 1 callers
Function
estimate_probs
(qrels: Qrels, run: Run)
ranx/fusion/common.py:56
↓ 1 callers
Function
estimate_segfuse_probs
(qrels: Qrels, runs: List[Run])
ranx/fusion/segfuse.py:39
↓ 1 callers
Function
estimate_segment_probs
(hit_lists, n_segments)
ranx/fusion/probfuse.py:20
↓ 1 callers
Function
estimate_segment_probs
(hit_lists)
ranx/fusion/segfuse.py:19
↓ 1 callers
Function
estimate_segment_probs_multi
(hit_lists: List, n_segments: int)
ranx/fusion/probfuse.py:42
↓ 1 callers
Function
estimate_segment_probs_multi
(hit_lists: List)
ranx/fusion/segfuse.py:35
↓ 1 callers
Function
extract_metric_and_params
(metric)
ranx/meta/evaluate.py:19
↓ 1 callers
Function
fisher_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 callers
Method
format_score
(self, score)
ranx/data_structures/optimization_report.py:75
↓ 1 callers
Method
from_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 callers
Function
fusion_switch
(method)
ranx/fusion/__init__.py:62
↓ 1 callers
Function
generate_qrels
(query_count, max_relevant_per_query)
tests/unit/ranx/data_structures/report_test.py:8
↓ 1 callers
Function
generate_run
(query_count, max_result_count)
tests/unit/ranx/data_structures/report_test.py:18
↓ 1 callers
Function
get_candidates
(runs)
ranx/normalization/borda_norm.py:15
↓ 1 callers
Function
get_metric_label
(m)
ranx/ranxhub.py:24
↓ 1 callers
Method
get_metric_label
(self, m)
ranx/data_structures/optimization_report.py:67
↓ 1 callers
Function
get_path
(id: str)
ranx/io.py:27
↓ 1 callers
Method
get_phantoms_for_latex
(self, model, metric)
ranx/data_structures/report.py:163
↓ 1 callers
Function
get_possible_weights
(step)
ranx/fusion_optimization/optimize_weights.py:11
↓ 1 callers
Method
get_query_ids
Returns query ids.
ranx/data_structures/run.py:127
↓ 1 callers
Method
get_superscript_for_latex
(self, model, metric)
ranx/data_structures/report.py:151
↓ 1 callers
Method
get_superscript_for_table
(self, model, metric)
ranx/data_structures/report.py:99
↓ 1 callers
Function
get_tmp_path
(id: str)
ranx/io.py:34
↓ 1 callers
Function
get_trial_configs
(weights, n_runs)
ranx/fusion_optimization/optimize_weights.py:16
↓ 1 callers
Function
get_url
(id: str)
ranx/io.py:41
↓ 1 callers
Function
has_hyperparams
(method: str)
ranx/fusion_optimization/__init__.py:36
↓ 1 callers
Function
home_path
()
ranx/io.py:13
↓ 1 callers
Function
interpolated_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 callers
Function
isr
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 callers
Function
load_json
(path: str)
ranx/io.py:76
↓ 1 callers
Function
log_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 callers
Function
mapfuse
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 callers
Function
max_norm
Apply `max norm` to a run.
ranx/normalization/max_norm.py:46
↓ 1 callers
Function
metric_switch
(metric)
ranx/metrics/__init__.py:35
↓ 1 callers
Function
paired_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 callers
Function
permute
(x)
ranx/statistical_tests/fisher_randomization_test.py:6
↓ 1 callers
Function
posfuse
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 callers
Function
rank_norm
Apply `rank norm` to a run.
ranx/normalization/rank_norm.py:40
↓ 1 callers
Function
save_json
(x: dict, path: str)
ranx/io.py:71
↓ 1 callers
Function
segfuse
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 callers
Method
set_relevance_level
Sets relevance level.
ranx/data_structures/qrels.py:139
↓ 1 callers
Function
sort_dict_by_value
(d)
ranx/data_structures/common.py:76
↓ 1 callers
Function
sum_norm
Apply `sum norm` to a run.
ranx/normalization/sum_norm.py:46
↓ 1 callers
Function
sum_odds
(runs: List[Run])
ranx/fusion/bayesfuse.py:48
↓ 1 callers
Function
tmp_path
()
ranx/io.py:20
↓ 1 callers
Method
to_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 callers
Method
to_typed_list
Convert Qrels to Numba Typed List. Used internally.
ranx/data_structures/qrels.py:158
↓ 1 callers
Function
tukey_hsd_test
Performs Tukey's Honestly Significant Difference (HSD) Test.
ranx/statistical_tests/tukey_hsd_test.py:7
↓ 1 callers
Function
typed_list_argosrt
(typed_list)
ranx/data_structures/common.py:55
↓ 1 callers
Function
zmuv_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
Method
add
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
Method
add
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
Function
average_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
Function
convert_results_dict_list_to_run
(q_ids, results_dict_list)
ranx/data_structures/generic.py:20
Function
create_empty_results_dict_list
(length)
ranx/data_structures/generic.py:15
Function
dataframe_to_dict
(df: DataFrame, q_id_col: str, doc_id_col: str, score_col: str)
ranx/utils.py:66
Function
dcg
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
Function
dcg_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
Function
extract_scores
Extract the scores from a given results dictionary.
ranx/fusion/common.py:66
Method
from_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
Method
from_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
Method
from_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
Method
from_ranxhub
Download and load a ranx.Run from ranxhub. Args: path (str): Run ID. Returns: Run: ranx.Run
ranx/data_structures/run.py:364
Function
fuse
( runs: List[Run], norm: str = "min-max", method: str = "wsum", params: dict = None, )
ranx/meta/fuse.py:8
Method
get_doc_ids_and_scores
Returns doc ids and relevance scores.
ranx/data_structures/run.py:131
Method
get_doc_ids_and_scores
Returns doc ids and relevance judgments.
ranx/data_structures/qrels.py:147
← previous
next →
201–300 of 578, ranked by callers