def A_it_jt(self, it, jt = 0): """ Aij definition """ pdf = up.tomek_pdf(self.bias) global_it = self.global_id(it) # pdf refers to all the keys, not just allowed ones out = pdf(global_it) return out
def A_it_jt(self, it, jt=0): """ Aij definition """ pdf = up.tomek_pdf(self.bias) global_it = self.global_id(it) # pdf refers to all the keys, not just allowed ones out = pdf(global_it) return out
def A_it_jt(self, it, jt = 0): """ Aij definition (symmetric - does it need to be?) """ # FIXME some analytical research could be fruitful here # pdf = up.cauchy_pdf(self.bias, self.bias_power) # out = 1.0 + pdf(it) # Early (working) version # out = 1.0 - (1.0 * abs(self.bias - it)/self.size) pdf = up.tomek_pdf(self.bias) out = pdf(it) return out
def A_it_jt(self, it, jt=0): """ Aij definition (symmetric - does it need to be?) """ # FIXME some analytical research could be fruitful here # pdf = up.cauchy_pdf(self.bias, self.bias_power) # out = 1.0 + pdf(it) # Early (working) version # out = 1.0 - (1.0 * abs(self.bias - it)/self.size) pdf = up.tomek_pdf(self.bias) out = pdf(it) return out