Per-sample weights or label fractions

Hi there.

Just wondering if per-sample weighting is currently possible? For our project we need to apply fractional weights to each sample.

Alternatively can DL4J handle having a fraction specified for label values for each sample? This example would indicate that it can:

However, the Constructor for DataSet specifies that labels must be binarized:

I’m confused as this seems to be contradictory.

Any advice is greatly appreciated.