mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix/set pretrain_only by fsrs_items (#3051)
* Fix/set pretrain_only and insufficient reviews based on fsrs_items * use review_count for FsrsInsufficientReviews * Update weights.rs * Update weights.rs
This commit is contained in:
parent
3d184073d7
commit
eb597475c5
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ impl Collection {
|
|||
});
|
||||
let fsrs = FSRS::new(Some(current_weights))?;
|
||||
let mut weights =
|
||||
fsrs.compute_parameters(items.clone(), revlogs.len() < 1000, Some(progress2))?;
|
||||
fsrs.compute_parameters(items.clone(), fsrs_items < 1000, Some(progress2))?;
|
||||
let metrics = fsrs.universal_metrics(items, &weights, |_| true)?;
|
||||
if metrics.0 < metrics.1 {
|
||||
weights = current_weights.to_vec();
|
||||
|
|
Loading…
Reference in a new issue