# -*- coding: utf-8 -*-
"""
Created on Tue Dec 3 14:38:04 2019
@author: xuguanghui
"""
import numpy as np
mlplib_label = r"C:\Users\xuguanghui\Desktop\106421_mlplib.lab"
train_label = r"C:\Users\xuguanghui\Desktop\106421_train.lab"
mlplib_txt = r"C:\Users\xuguanghui\Desktop\106421_mlplib.txt"
train_txt = r"C:\Users\xuguanghui\Desktop\106421_train.txt"
mlplib_lab = np.fromfile(mlplib_label, dtype=np.int32).reshape(-1, 892)
train_lab = np.fromfile(train_label, dtype=np.float32).reshape(-1, 892)
np.savetxt(mlplib_txt, mlplib_lab, fmt='%d')
np.savetxt(train_txt, train_lab, fmt='%d')