load_saved_cross_encoding_inputs
Read the inputs of the oriented cross-encoding matrix from saved run folders.
Needs neither trainers nor data: every run folder <root>/<run_id>/ holds the saved model
(model/) and its cached cross-task encoder evaluation (encoded_values_*_split_<split>.csv),
as written by plot_cross_encoding_heatmap and published with the multilingual GRADIEND models.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
str
|
Folder with one subfolder per run. |
required |
run_ids
|
Optional[Sequence[str]]
|
Runs to load. By default every subfolder with a saved model. |
None
|
split
|
str
|
Split of the cached evaluation ( |
'test'
|
Returns:
| Type | Description |
|---|---|
Dict[str, Tuple[str, str]]
|
|
Dict[str, str]
|
|
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If a run has no saved model or no cached evaluation. |
ValueError
|
If a run does not encode exactly two classes or has several cached evaluations. |