floatcsep.model.Model.from_dict

classmethod Model.from_dict(record, **kwargs)[source]

Returns a Model instance from a dictionary containing the required atrributes. Can be used to quickly instantiate from a .yml file.

Parameters:

record (dict) –

Contains the keywords from the __init__ method.

Note

Must have either an explicit key name, or it must have exactly one key with the model’s name, whose values are the remaining __init__ keywords.

Returns:

A Model instance