mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Apply suggestions from code review
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
This commit is contained in:
parent
423e5a53fc
commit
1fe98f2514
1 changed files with 2 additions and 2 deletions
|
|
@ -119,8 +119,8 @@ impl Collection {
|
|||
};
|
||||
let mut params = fsrs.compute_parameters(input.clone())?;
|
||||
progress_thread.join().ok();
|
||||
if let Ok(fsrs) = FSRS::new(Some(current_params)) {
|
||||
let current_log_loss = fsrs.evaluate(items.clone(), |_| true)?.log_loss;
|
||||
if let Ok(current_fsrs) = FSRS::new(Some(current_params)) {
|
||||
let current_log_loss = current_fsrs.evaluate(items.clone(), |_| true)?.log_loss;
|
||||
let optimized_fsrs = FSRS::new(Some(¶ms))?;
|
||||
let optimized_log_loss = optimized_fsrs.evaluate(items.clone(), |_| true)?.log_loss;
|
||||
if current_log_loss <= optimized_log_loss {
|
||||
|
|
|
|||
Loading…
Reference in a new issue