nvflare.app_common.abstract.model module

The Learnable in the deep learning domain is usually called Model by researchers.

This import simply lets you call the Learnable ‘Model’. Model Learnable is a dict that contains two items: weights and meta info

class ModelLearnableKey[source]

Bases: object

META = 'meta'
WEIGHTS = 'weights'
make_model_learnable(weights, meta_props) Learnable[source]
model_learnable_to_dxo(ml: Learnable) DXO[source]
validate_model_learnable(model_learnable: Learnable) str[source]

Check whether the specified model is a valid Model Shareable.

Parameters

model_learnable (ModelLearnable) – model to be validated

Returns

error text or empty string if no error

Return type

str