stefanonardo / pytorch-esn

An Echo State Network module for PyTorch.
MIT License
205 stars 43 forks source link

Regarding classification task #2

Closed connectedhealthcaremy closed 5 years ago

connectedhealthcaremy commented 6 years ago

we have run the code and we have put the features in tensor object for classification but we are getting following exception AttributeError: 'int' object has no attribute 'dim' can you help in elobrating us why this exception is coming The below are the lines at which it was coming if input.dim() == 2 and bias is not None:

fused op is marginally faster

connectedhealthcaremy commented 6 years ago

how to define hidden we have randomly selected the hidden but its becoming zero when computing the output please help us to resolve this issue for classificattion

connectedhealthcaremy commented 6 years ago

All the remaining issues resolved code running succcessfully but the output we are getting for classification is just single vector. Do we need to give target in the form of (1,0)(0,1) or singlevector (0,1,1,0)

stefanonardo commented 6 years ago

It depends on your loss function. I added two examples to the repository. You should take a look to mnist.py classification task.