Prediction of the toxicity by adaptive processing of structured molecular representations