def closenessScores(self, expValues, actValues, fractional=True,):
    """ See the function description in base.py

    kwargs will have the keyword "fractional", which is ignored by this encoder
    """

    expValue = expValues[0]
    actValue = actValues[0]

    if expValue == actValue:
      closeness = 1.0
    else:
      closeness = 0.0

    if not fractional:
      closeness = 1.0 - closeness

    return numpy.array([closeness])
def closenessScores(self, expValues, actValues, fractional=True,):
    """ See the function description in base.py

    kwargs will have the keyword "fractional", which is ignored by this encoder
    """

    expValue = expValues[0]
    actValue = actValues[0]

    if expValue == actValue:
      closeness = 1.0
    else:
      closeness = 0.0

    if not fractional:
      closeness = 1.0 - closeness

    return numpy.array([closeness])
def closenessScores ( self , expValues , actValues , fractional = True , ) : expValue = expValues [ 0 ] actValue = actValues [ 0 ] if expValue == actValue : closeness = 1.0 else : closeness = 0.0 if not fractional : closeness = 1.0 - closeness return numpy . array ( [ closeness ] )
See the function description in base.py

    kwargs will have the keyword "fractional", which is ignored by this encoder
See the function description in base . py