Neural-network representations of chemical kinetics