Solved by RaLo4 in post #2 
              
              
                I am pretty sure it is across all the dataset. 
Which is also what the documentation says here: 

For example, if a dataset contains 100 positive and 300 negative examples of a single class, then pos_weight for the class should be equal to 300/100=3. The loss would act as if the dataset contains 3*…