Hi everyone,

i have a problem, please help me

i run the MNIST classification code in htm.core. in this code, in the training phase there is the command ‘sp.compute( enc, True, columns )’. so there is two 2D-variable ‘enc’ and ‘columns’. I want each of the variables ‘enc’ and ‘columns’ in the form of one-dimensional vector of integers.So I used the following commands:

sp.compute( enc, True, columns )

vector=enc.flatten()

columns2=columns.flatten()

sp_input= np.array(vector,dtype=‘uint32’)

sp_output = np.array(columns2, dtype=‘uints32’)

But I get this error:

sp_input = np.array(vector,dtype=‘uint32’)

TypeError: int() argument must be a string, a bytes-like object or a number, not ‘htm.bindings.sdr.SDR’

please help me, please tell me what should I do to have ‘enc’ and ‘columns’ in 1-D int format?