Just to end the topic, I had something wrong with the code. After fixing it my code was still not learning patterns from my input SDR data but if I switched to scalar data (only changing the encoder ) I did get lower scores for higher iterations. So the conclusion is that my data is not properly configured to just pass it as SDR.
Thanks to @sheiser1 and @rhyolight for your attention!!!