Machine Learning Methods for Scientific Data Compression