Machine learning for discovering laws of nature