Machine learning method for calculating mode-locking performance of linear cavity fiber lasers