def export_mat(self, filename):
        from scipy.io import savemat
        from .utils import concat_new_first

        Cs = concat_new_first(self.Cs)
        Rs = concat_new_first(self.Rs)
        mus = concat_new_first(self.mus)
        subs = concat_new_first(map(concat_new_first, self.subquantizers))

        savemat(filename, {'Cs': Cs, 'Rs': Rs, 'mus': mus, 'subs': subs, 'V': self.V, 'M': self.M})
Export model parameters in .mat file format.
dataset/ETHPy150Open yahoo/lopq/python/lopq/model.py/LOPQModel.export_mat