处理KERAS中的两个损失函数

时间:2018-09-20 11:11:20

标签: keras loss-function

在Keras中训练两个单独的储层(下例中为m / n)是否可能具有两种不同的损失函数?enter image description here

1 个答案:

答案 0 :(得分:0)

是的,在keras中可能有两个损失函数。假设您具有<li class="mat-form-field--inline"> <mat-form-field> <input matInput [(ngModel)]="name" placeholder="What's your name?"> </mat-form-field> <mat-form-field> <input matInput [(ngModel)]="name" placeholder="hello"> </mat-form-field> </li> .mat-form-field--inline { display: flex; flex-direction: row; align-items: center; } .mat-form-field--inline .mat-form-field { display: inline-block; width: 100%; vertical-align: middle; } .mat-form-field--inline .mat-form-field:nth-child(1) { margin-right: 10px; } 权重的loss_1loss_2函数。您可以按以下步骤在keras中强制执行此操作。

w1