public function restore(Snapshot $snapshot) : void
    {
        foreach ($snapshot as [$layer, $params]) {
            if ($layer instanceof Parametric) {
                $layer->restore($params);
            }
        }
    }
public function restore(Snapshot $snapshot) : void
    {
        foreach ($snapshot as [$layer, $params]) {
            if ($layer instanceof Parametric) {
                $layer->restore($params);
            }
        }
    }
public function restore ( Snapshot $ snapshot ) : void { foreach ( $ snapshot as [ $ layer , $ params ] ) { if ( $ layer instanceof Parametric ) { $ layer -> restore ( $ params ) ; } } }
Restore the network parameters from a snapshot.

@param \Rubix\ML\NeuralNet\Snapshot $snapshot
Restore the network parameters from a snapshot .