I am new to tensorflow.
Question : How can I add a custom loss function to a canned estimator like DNNLinearCombinedRegressor
?
Thank you in advance for your help!
I did not find a loss_fn
argument to pass in to DNNLinearCombinedRegressor
. But it looks straightforward to define any custom estimator:
A good reference is the code for DNNLinearCombinedRegressor
.
I believe you need following steps:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.