Neural network prediction of some classes of tokamak disruptions