|
def write_file_for_tfjs (name, data):
with open(name + '.txt', 'w') as outfile:
outfile.write('# shape: {0}\n'.format(data.shape))
for data_slice in data:
np.savetxt(outfile, data_slice)
outfile.write('# New slice\n')
write_file_for_tfjs("x", x_train) # Writes x.txt with x-data
write_file_for_tfjs("y", y_train) # Writes y.txt with y-data
:
?
:
x* =
W =
b =
f(\textbf{x}; \textbf{W}, b) =
\textbf{x}* = \mathrm{argmax}_xf(\textbf{x}; \textbf{W}, b)
?