Recovery of polymer folding landscapes from univariate time series and its dimensionality reduction using machine learning