added delete code for weight array in softmax & bagging & actions_selected