bert icon indicating copy to clipboard operation
bert copied to clipboard

I have weights for every example. Need to multiple them with the loss function

Open bjayakumar opened this issue 8 years ago • 1 comments

How can I do it correctly?

Example

Sentence 1, wgt1, label1 Sentence 2, wgt2, label2 ...

I need multiple this weight with loss function and train them.

Please help me.

bjayakumar avatar Dec 01 '18 03:12 bjayakumar

You may add the weights into features when building examples. Then you can use it in function model_fn_builder and then in function create_model.

shuaihhx avatar Dec 05 '18 07:12 shuaihhx