Improved S-AF and S-DF Relaying Schemes using Machine Learning based Power Allocation over Cascaded Rayleigh Fading Channels