6ffa18e3905ac8dac016111063db4bbacbc788c7,keras/objectives.py,,mean_squared_logarithmic_error,#Any#Any#,29
Before Change
def mean_squared_logarithmic_error(y_true, y_pred):
return T.sqr(T.log(T.clip(y_pred, epsilon, np.inf) + 1.) - T.log(T.clip(y_true, epsilon, np.inf) + 1.)).mean(axis=-1)
def squared_hinge(y_true, y_pred):
After Change
def mean_squared_logarithmic_error(y_true, y_pred):
first_log = K.log(K.clip(y_pred, K._EPSILON, np.inf) + 1.)
second_log = K.log(K.clip(y_true, K._EPSILON, np.inf) + 1.)
return K.mean(K.square(first_log - second_log), axis=-1)
def squared_hinge(y_true, y_pred):
return K.mean(K.square(K.maximum(1. - y_true * y_pred, 0.)), axis=-1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: keras-team/keras
Commit Name: 6ffa18e3905ac8dac016111063db4bbacbc788c7
Time: 2015-11-15
Author: francois.chollet@gmail.com
File Name: keras/objectives.py
Class Name:
Method Name: mean_squared_logarithmic_error
Project Name: senarvi/theanolm
Commit Name: 0fa7d47a61ec6d8b590ed97dd230c8e2217fe738
Time: 2017-10-20
Author: seppo.git@marjaniemi.com
File Name: theanolm/training/basicoptimizer.py
Class Name: BasicOptimizer
Method Name: _normalize
Project Name: pymc-devs/pymc3
Commit Name: 89916ad724ae88ebb4c1af3d65919b87b318f180
Time: 2021-01-20
Author: 28983449+ricardoV94@users.noreply.github.com
File Name: pymc3/distributions/continuous.py
Class Name: Lognormal
Method Name: logcdf