why not 

```
class_counts = np.bincount(y, weight=sample_weight)
self.priors = class_counts / class_counts.sum()
```
?