Machine learning for nonlinear materials characterization and modeling