Open pasq-cat opened 22 hours ago
Not sure what the problem might be. Can you provide a MWE demonstrating that is_same_except
is not working as you expect. I.e, some variation of this (which is working for me):
using MLJModelInterface
import MLJModelInterface as MMI
mutable struct Classifier <: Probabilistic
x::Int
y::Int
end
model = Classifier(1, 2)
model2 = deepcopy(model)
model2.y = 7
@assert MMI.is_same_except(model, model2, :y)
Or, if you suspect some other problem, a more self-contained MWE would be helpful.
Hi, i was trying to implement the update method for laplaceredux but I am having a problem.
this is the model
this is the fit function that i have written
and now follows the incomplete update function that i was trying. I have removed the loop part since it's not important.
the issue is that if i try to rerun the model by changing only the number of epochs is_same_except still gives me
even though :epochs is listed as exception
so what is the correct way to implement is_same_except? thank you