The code to generate cascaded data is fixed to have only one weight matrix