Scarred functions serve as a basis to calculate eigenstates in quantum chaotic systems, and are useful to study the correspondence between classical and quantum systems in the presence of chaos. In this paper, the authors propose a method, based on a machine learning algorithm, to calculate the scarred functions and corresponding eigenstates of the coupled quartic oscillator, and they report that the algorithm increases accuracy and reduces the execution time.