(self, data_instances, model_weights)
return self.forwards
forwards = 1/4 * wx
forwards = 1/4 * wx
forwards = 1 / 4 * wx
def compute_forwards(self, data_instances, model_weights):
        """
        forwards = 1/4 * wx
        """
        # wx = data_instances.mapValues(lambda v: vec_dot(v.features, model_weights.coef_) + model_weights.intercept_)

        self.forwards = data_instances.mapValues(lambda v: 0.25 * vec_dot(v.features, model_weights.coef_))
        return self.forwards
def compute_forwards ( self , data_instances , model_weights ) : # wx = data_instances.mapValues(lambda v: vec_dot(v.features, model_weights.coef_) + model_weights.intercept_) self . forwards = data_instances . mapValues ( lambda v : 0.25 * vec_dot ( v . features , model_weights . coef_ ) ) return self . forwards