Skip to content

Commit ed70f9d

Browse files
Cleanup
1 parent 23454ce commit ed70f9d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/gibbs_functions.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,8 +2229,7 @@ void update_indicator_interaction_pair_with_mala (
22292229
* (during burn-in) or estimated and adapted post-burn-in using rank-one score difference updates.
22302230
*
22312231
* The step size is normalized using the trace of the inverse Fisher matrix (Titsias, 2023), ensuring
2232-
* consistent average proposal scale. Accepted proposals update the cached interaction gradient, while
2233-
* rejected proposals retain the previous gradient unless it was invalid.
2232+
* consistent average proposal scale.
22342233
*
22352234
* During burn-in, the step size is adapted using dual averaging. After burn-in, Robbins-Monro is used
22362235
* along with Fisher matrix updates.
@@ -2258,8 +2257,6 @@ void update_indicator_interaction_pair_with_mala (
22582257
* - step_size_pairwise (if adaptive)
22592258
* - dual_averaging_state (during burn-in)
22602259
* - sqrt_inv_fisher_pairwise (post-burn-in)
2261-
* - cached_interaction_gradient (updated if accept or stale)
2262-
* - gradient_valid (always set to true by end)
22632260
*/
22642261
void update_interactions_with_fisher_mala (
22652262
arma::mat& pairwise_effects,
@@ -2426,10 +2423,6 @@ void update_interactions_with_fisher_mala (
24262423
* The step size is normalized using the trace of the inverse Fisher matrix (Titsias, 2023),
24272424
* and the Fisher-preconditioned drift is computed using the full interaction gradient.
24282425
*
2429-
* A cached gradient vector is passed in and reused across proposals. Only one component
2430-
* is modified if a proposal is accepted. At the end of the function, the updated gradient
2431-
* is returned to keep it consistent with the updated state of the model.
2432-
*
24332426
* Inputs:
24342427
* - pairwise_effects: Symmetric matrix of interaction parameters (modified in-place).
24352428
* - main_effects: Matrix of threshold (main effect) parameters.

0 commit comments

Comments
 (0)