Skip to content

Commit

Permalink
linting updare
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardcqian committed Dec 9, 2024
1 parent eeecd63 commit f8ae9b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/augurs-forecaster/src/power_transforms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl CostFunction for BoxCoxProblem<'_> {

// The goal is to minimize the negative log-likelihood
fn cost(&self, lambda: &Self::Param) -> Result<Self::Output, Error> {
box_cox_log_likelihood(&self.data, *lambda).map(|ll| -ll)
box_cox_log_likelihood(self.data, *lambda).map(|ll| -ll)
}
}

Expand All @@ -91,7 +91,7 @@ impl CostFunction for YeoJohnsonProblem<'_> {

// The goal is to minimize the negative log-likelihood
fn cost(&self, lambda: &Self::Param) -> Result<Self::Output, Error> {
yeo_johnson_log_likelihood(&self.data, *lambda).map(|ll| -ll)
yeo_johnson_log_likelihood(self.data, *lambda).map(|ll| -ll)
}
}

Expand Down

0 comments on commit f8ae9b0

Please sign in to comment.