# Path: scripts/keras/keras/utils/generic_utils.py
# def get_from_module(identifier, module_params, module_name, instantiate=False):
#     if type(identifier) is str:
#         res = module_params.get(identifier)
#         if not res:
#             raise Exception('Invalid ' + str(module_name) + ': ' + str(identifier))
#         if instantiate:
#             return res()
#         else:
#             return res
#     return identifier


import theano
import theano.tensor as T
import numpy as np
from six.moves import range
from .utils.generic_utils import get_from_module
from __future__ import absolute_import

epsilon = 1.0e-15

def mean_squared_error(y_true, y_pred):

# Path: scripts/keras/keras/utils/generic_utils.py
# def get_from_module(identifier, module_params, module_name, instantiate=False):
#     if type(identifier) is str:
#         res = module_params.get(identifier)
#         if not res:
#             raise Exception('Invalid ' + str(module_name) + ': ' + str(identifier))
#         if instantiate:
#             return res()
#         else:
#             return res
#     return identifier


# Path: scripts/keras/keras/objectives.py
import theano
import theano.tensor as T
import numpy as np
from six.moves import range
from .utils.generic_utils import get_from_module

from __future__ import absolute_import

epsilon = 1.0e-15

def mean_squared_error(y_true, y_pred):

    return T.sqr(y_pred - y_true).mean()