{"action":"created","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/6446","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/6446/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/6446/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/6446/events","html_url":"https://github.com/fchollet/keras/issues/6446","id":225282436,"number":6446,"title":"changing loss  weight during training","user":{"login":"hakantekbas","id":19631334,"avatar_url":"https://avatars2.githubusercontent.com/u/19631334?v=3","gravatar_id":"","url":"https://api.github.com/users/hakantekbas","html_url":"https://github.com/hakantekbas","followers_url":"https://api.github.com/users/hakantekbas/followers","following_url":"https://api.github.com/users/hakantekbas/following{/other_user}","gists_url":"https://api.github.com/users/hakantekbas/gists{/gist_id}","starred_url":"https://api.github.com/users/hakantekbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakantekbas/subscriptions","organizations_url":"https://api.github.com/users/hakantekbas/orgs","repos_url":"https://api.github.com/users/hakantekbas/repos","events_url":"https://api.github.com/users/hakantekbas/events{/privacy}","received_events_url":"https://api.github.com/users/hakantekbas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-29T20:16:37Z","updated_at":"2017-04-30T21:51:55Z","closed_at":"2017-04-30T21:51:55Z","body":"Hi, \r\n\r\nI am trying to change loss weight during training. When i check source code, loss weight is set during compiling. When i call fit, compile process is over. Is there any easy way to accomplish this  target easily. I saw some issues related with learning rate but changing code \"as in learning rate example\" can affect other parts.\r\n\r\nAs i have limited experience on theano and keras, I need your help. Thanks (keras version 1.1.1)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fchollet/keras/issues/comments/298259725","html_url":"https://github.com/fchollet/keras/issues/6446#issuecomment-298259725","issue_url":"https://api.github.com/repos/fchollet/keras/issues/6446","id":298259725,"user":{"login":"fchollet","id":710255,"avatar_url":"https://avatars0.githubusercontent.com/u/710255?v=3","gravatar_id":"","url":"https://api.github.com/users/fchollet","html_url":"https://github.com/fchollet","followers_url":"https://api.github.com/users/fchollet/followers","following_url":"https://api.github.com/users/fchollet/following{/other_user}","gists_url":"https://api.github.com/users/fchollet/gists{/gist_id}","starred_url":"https://api.github.com/users/fchollet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchollet/subscriptions","organizations_url":"https://api.github.com/users/fchollet/orgs","repos_url":"https://api.github.com/users/fchollet/repos","events_url":"https://api.github.com/users/fchollet/events{/privacy}","received_events_url":"https://api.github.com/users/fchollet/received_events","type":"User","site_admin":false},"created_at":"2017-04-30T21:51:55Z","updated_at":"2017-04-30T21:51:55Z","body":"I suppose you are referring to the `loss_weight` argument in `compile`. There are two ways you could do this:\r\n\r\n- (simple) just recompile your model with a new `loss_weight` argument value when you want to adjust the loss weights.\r\n- Pass symbolic tensors as the `loss_weight` values, and change their values during training via a callback."}}
{"actor":{"display_login":"fchollet"}}