brainstorm/structure/network.py
def from_hdf5(cls, filename):
        """
        Load network from HDF5 file.

        Args:
            filename (str):
                Name of the file that the network should be loaded from.

        Returns:
            Network:
                The loaded network.

        See Also:
            :meth:`.save_as_hdf5`
        """
        with h5py.File(filename, 'r') as f:
            description = json.loads(f['description'].value.decode())
            net = create_from_description(description)
            net.handler.set_from_numpy(net.buffer.parameters,
                                       f['parameters'].value)
        return net

        Load network from HDF5 file.

        Args:
            filename (str):
                Name of the file that the network should be loaded from.

        Returns:
            Network:
                The loaded network.

        See Also:
            :meth:`.save_as_hdf5`
        
Load network from HDF5 file.
Load network from HDF5 file .
def from_hdf5(cls, filename):
        with h5py.File(filename, 'r') as f:
            description = json.loads(f['description'].value.decode())
            net = create_from_description(description)
            net.handler.set_from_numpy(net.buffer.parameters,
                                       f['parameters'].value)
        return net
def from_hdf5 ( cls , filename ) : with h5py . File ( filename , 'r' ) as f : description = json . loads ( f [ 'description' ] . value . decode ( ) ) net = create_from_description ( description ) net . handler . set_from_numpy ( net . buffer . parameters , f [ 'parameters' ] . value ) return net
Load network from HDF5 file.
Load network from HDF5 file .
"""
        Load network from HDF5 file.

        Args:
            filename (str):
                Name of the file that the network should be loaded from.

        Returns:
            Network:
                The loaded network.

        See Also:
            :meth:`.save_as_hdf5`
        """
The loaded network.
The loaded network .
Network
cls
filename
Name of the file that the network should be loaded from.
Name of the file that the network should be loaded from .