• Home
  • About
    • Seokmin.Lee photo

      Seokmin.Lee

      Hello, I am a master's student in the Department of Convergence Security (Samsung Advanced Security) at Korea University.After graduation, I am expected as a security developer or researcher member of Samsung SDS.

    • Learn More
    • LinkedIn
    • Github
  • Posts
    • All Tags

[python]npz2mat

06 Sep 2020

import numpy as np
from scipy.io import savemat

def npz2mat(name_of_npz):
    with np.load(name_of_npz) as data:
        a = data['x']
        mdic = {"a":a,"label":"experiment"}
        savemat(name_of_npz[:name_of_npz.find(".")+1],mdic)




pythondata-preprocessingnumpynpz2mat Share Tweet +1