parameter.py 🚧¢

Source: LION/utils/parameter.py

Warning

This file has not yet received a complete narrative and docstring audit. Its public source-level API is listed automatically below.

class LIONParameter(**kwargs)

No docstring is available.

LIONParameter.is_filled(self)

Check if the values are not None

LIONParameter.serialize(self)

This only exists to allow LIONParameter() inside LIONParameter() otherwise, its equivalent to vars(self)

LIONParameter.deserialize(self)

Produces a dict of LIONParameter()

LIONParameter.save(self, fname)

Save LIONParameter into a JSON file

LIONParameter.load(self, fname)

Load LIONParameter from JSON file, and initialize instance

LIONParameter.unpack(self)

If the LIONParameter is made of other Parameters, unpack those.