Hi there,
Thanks for the great work! I'm a little stuck on one part of m objective function. I'm minimising the distances between the product of a set of features multiplied by learned weights and another given value.
However, in my loss function, I'd like to do this
obj_exp = LpAffineExpression()
for doc_idx, doc in enumerate(documents):
exp_doc = LpAffineExpression()
for f_idx,feature in enumerate(doc):
exp_doc += weights[f_idx] * feature
obj_exp += math.pow((1-lpSum(exp_doc)) - market_effects[doc_idx],2))
Is there any way to do this in Pulp?
Thanks!