Learning Structural Variations in Shock Trees