Hi,
I've trouble understanding the effect of relaxed=True in
the inference method of EdgeFeatureGraphCRF. (I'm training it
using OneSlackSSVM)
It seems that if setting relaxed=True, the only difference
is that it returns the so-called unary_marginals instead of
its argmax. (Line 388 of inference_methods.py in function
inference_ad3 -- shown below)
In that case, doing a softmax on this unary_marginals would
give me something close to a probability.
But does-it make sense??
I'm unsure of what is a relaxed inference I must say... :-)
Thanks,
JL
Line 388 of inference_methods.py (in function
inference_ad3):
if solver_status in ["fractional", "unsolved"]
and relaxed:
unary_marginals =
unary_marginals.reshape(unary_potentials.shape)
y = (unary_marginals, pairwise_marginals)
else:
y = np.argmax(unary_marginals, axis=-1)
--