Код: Выделить всё
def custom_loss(y_true, y_pred, feature_val):
return (feature_val ** 2) * abs(y_true - y_pred)
Подробнее здесь: https://stackoverflow.com/questions/786 ... s-in-keras
Код: Выделить всё
def custom_loss(y_true, y_pred, feature_val):
return (feature_val ** 2) * abs(y_true - y_pred)