Open rgerkin opened 3 years ago
@colemanliyah @slamm1
If I understand the setup, I think ds_obs_train
is the correct chunk of data.
For updating the model weights, I would try using TF assign
. Python's builtin setattr
may be a workable solution, but I don't know how it interacts with the internals of TF's graph. For the embeddings weights, this would look something like model.stimuli.embedding.embeddings.assign(new_weights)
.
Yes, happy to chat. I'll send you a DM.
@roads We've been trying to explore the sensitivity of our fit parameters, and using e.g. Fisher information as a measure of uncertainty (by computing the second partial derivatives of parameters at the MLE). It's not totally clear to me what the most efficient way to do this, but our approach has been something like:
Which then plots the MSE vs the value of one parameter, e.g. rho. One issue is that sometimes the MSE is almost totally insensitive to that parameter, so I wonder if we are doing something wrong, and particularly if
ds_obs_train
is not the right chunk of data (we generate it the same way you do in your examples).As a sort of positive control, I even tried something like the above but with changing the embedded coordinates themselves. This should completely wreck MSE, but even that doesn't really work. We are just directly assigning to the embedding, e.g.
model.stimuli.embedding.weights[0] *= multiple
, though maybe this isn't actually changing the coordinate and that is more of a window into the value and not the actual value.If you have time to meet with us about any of this next week or beyond let me know.