Replace refitted values
replace_refitted_values
ReplaceRefittedValues
Mixin class to replace refitted values.
Source code in fedpydeseq2/core/deseq2_core/replace_refitted_values/replace_refitted_values.py
loc_replace_refitted_values(data_from_opener, shared_state)
Replace refitted values in local_adata from refit_adata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_from_opener
|
AnnData
|
AnnData returned by the opener. Not used. |
required |
shared_state
|
dict
|
Not used. |
required |
Source code in fedpydeseq2/core/deseq2_core/replace_refitted_values/replace_refitted_values.py
replace_refitted_values(train_data_nodes, aggregation_node, local_states, round_idx, clean_models)
Replace the values that were refitted in local_adata
s.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
train_data_nodes
|
List of TrainDataNode. |
required | |
aggregation_node
|
The aggregation node. |
required | |
local_states
|
Local states. Required to propagate intermediate results. |
required | |
round_idx
|
Index of the current round. |
required | |
clean_models
|
Whether to clean the models after the computation. |
required |
Returns:
Name | Type | Description |
---|---|---|
local_states |
dict
|
Local states, with refitted values |
round_idx |
int
|
The updated round index. |