You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update get_cost function in _z_encoder to call compute_objective in _z_encoder.
As ztz and ztX are not initialized prior to calling compute_z, this requires some changes. Two possible solutions:
get_cost function can return the value of cost function when z_hat=0 (i.e. 0.5 * np.linalg.norm(self.X[0]) ** 2) if ztz and ztX are not set.
However test_get_cost fails with the following message (final cost after running compute_z is greater than the initial cost):
However test_get_cost fails with the following message (the cost computed in the test is not close to final_cost computed after compute_z is called. ):
Update
get_cost
function in_z_encoder
to callcompute_objective
in_z_encoder
.As
ztz
andztX
are not initialized prior to callingcompute_z
, this requires some changes. Two possible solutions:get_cost
function can return the value of cost function whenz_hat=0
(i.e.0.5 * np.linalg.norm(self.X[0]) ** 2
) ifztz
andztX are not set
.However
test_get_cost
fails with the following message (final cost after runningcompute_z
is greater than the initial cost):ztz
andztX
should be set to0
upon initialization asHowever
test_get_cost
fails with the following message (the cost computed in the test is not close tofinal_cost
computed aftercompute_z
is called. ):The text was updated successfully, but these errors were encountered: