Application of machine learning technique for a fast forecast of aggregation kinetics in space-inhomogeneous systems