0.44.0rc2
Pre-release
Pre-release
0.44.0rc2
Added
- Add documentation on how to change SubstraFL log level (#194)
- Add the
simulate_experiment
function, that will execute theCompute Plan
in RAM only. It returns Python objects containing the computedPerformances
and the saved intermediateStates
. More information about this feature is available in docstrings (#184).
Example of usage:
from substrafl.experiment import simulate_experiment
scores, intermediate_state_train, intermediate_state_agg = simulate_experiment(
client=my_substra_client,
strategy=my_strategy,
train_data_nodes=train_data_nodes,
evaluation_strategy=my_eval_strategy,
aggregation_node=aggregation_node,
clean_models=False,
num_rounds=NUM_ROUNDS,
)
Changed
- BREAKING: rename
datasamples
todata_from_opener
(#193) - Bump documentation dependencies to Sphinx 7.2.6 (#195)
- The predict task does not exist anymore. The evaluation of a model is done in a single task #177
Strategy
implement anevaluate
method, with the@remote_data
decorator, to compute the evaluation of the model. Theevaluate
method is the same for all strategies #177- BREAKING: the
perform_predict
method ofStrategy
changed in favor ofperform_evaluation
that calls the newevaluate
method #177 - BREAKING:
metric_functions
are now passed to theStrategy
instead of theTestDataNode
#177 - BREAKING: the
predict
method ofAlgo
has no@remote_data
decorator anymore. It signatures does not takeprediction_path
anymore, and the predictions are return by the method #177 - Abstract base class
Node
is replaced byProtocols
, defined insubstrafl.nodes.protocol.py
(#185) - BREAKING: rename
test_data_sample_keys
,test_tasks
andregister_test_operations
,tasks
todata_sample_keys
andregister_operations
inTestDataNodes
(#185) - BREAKING:
InputIdentifiers
andOutputIdentifiers
move fromsubstrafl.nodes.node
tosubstrafl.nodes.schemas
(#185) - Switch to python-slim as base image, instead of substra-tools (#197)
- Dropped support for Python 3.8
Fixed
- Numerical stability of the
NewtonRaphson
strategy is improved by symmetrizing the Hessian