Machine Learning Model of the Swift/BAT Trigger Algorithm for Long GRB Population Studies