答案 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_1
和loss_2
函数。您可以按以下步骤在keras中强制执行此操作。
w1