Modeling of the L-shell copper X-pinch plasma produced by the compact generator of Ecole polytechnique using pattern recognition