locked
Giving different weighting to more recent data RRS feed

All replies

  • Repeat blocks can be used for this.  If you put your weights into a VariableArray over range j, then you can write:

    using(Variable.ForEach(j)) {
      Variable<double> score = Variable.FunctionEvaluate(f, x[j]);
      using(Variable.Repeat(weights[j])) {
        y[j] = (Variable.GaussianFromMeanAndVariance(score, 0.1) > 0);
      }
    }

    Thursday, August 22, 2013 12:52 PM
    Owner