Learning bridge numbers of knots