Transformer-based model for symbolic regression via joint supervised learning