Closed deerdodo closed 6 years ago
Hi, you just need to pass a matrix data of shape (n_samples, n_cols) and a labels vector of shape (n_samples, ), similar as scikit-learn works.
Regards
self.n_visible_units = X.shape[1] how to modify this line of code for my dataset
Do you have an error like this : AttributeError: 'list' object has no attribute 'shape'
It is weird because np.loadtxt() generate a numpy array
what i want is to modify this code in way to accept my accelerometer dataset, below is the code with my modification to add the new dataset
And this is a sample from my dataset
(Patient Number, time in millisecond, accelerometer x-axis,y-axis, z-axis,magnitude, spectrogram,label (0 or 1))
in the dataset i am using the only the spectrogram as input feature and the label (0 or 1) as the output the total traing samples is 1,415,684
So how to modify this code to be appropriate the signal dataset instead of the image dataset