@pchandrasekaran Thank you very much.
Your suggestion solve the Error-2 but, still I am getting Error-3
 Error-3: AttributeError: 'CustomDataSet' object has no attribute 'size'
Could you tell me, why this is happening (transformation is not working)?