def save(self):
        dir = os.path.join('nets', 'digit_1_hidden_layer')
        FileUtils.mkdir(dir)
        params_file_path = FileUtils.path(dir, 'params.json')
        con_mat_file_path = FileUtils.path(dir, 'con_mat.json')
        wih_file_path = FileUtils.path(dir, 'wih.csv')
        who_file_path = FileUtils.path(dir, 'who.csv')

        out_param_file = open(params_file_path, "w")
        json.dump(self.params, out_param_file)
        out_param_file.close()
        out_con_file = open(con_mat_file_path, "w")
        json.dump(self.con_mat, out_con_file)
        out_con_file.close()
        savetxt(wih_file_path, self.wih, delimiter=',')
        savetxt(who_file_path, self.who, delimiter=',')
        pass
Beispiel #2
0
"""App Main

python3 app_main
"""
import os
from ml.framework.file_utils import FileUtils
FileUtils.mkdir('raw')
FileUtils.mkdir('clean')
FileUtils.mkdir('knn')
from ml.ux import index

if __name__ == '__main__':
    ""
Beispiel #3
0
"""App Main

python3 app_main
"""
import os
from ml.framework.file_utils import FileUtils
FileUtils.mkdir('raw')
from ml.ux import index

if __name__ == '__main__':
    ""