Anki/ts/deck-options/WeightsInputRow.svelte
Damien Elmes 0c6e3eaa93
Integrate the FSRS optimizer (#2633)
* Support searching for deck configs by name

* Integrate FSRS optimizer into Anki

* Hack in a rough implementation of evaluate_weights()

* Interrupt calculation if user closes dialog

* Fix interrupted error check

* log_loss/rmse

* Update to latest fsrs commit; add progress info to weight evaluation

* Fix progress not appearing when pretrain takes a while

* Update to latest commit
2023-09-05 18:45:05 +10:00

18 lines
523 B
Svelte

<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="ts">
import ConfigInput from "./ConfigInput.svelte";
import RevertButton from "./RevertButton.svelte";
import WeightsInput from "./WeightsInput.svelte";
export let value: any;
export let defaultValue: any;
</script>
<slot />
<ConfigInput>
<WeightsInput bind:value />
<RevertButton slot="revert" bind:value {defaultValue} />
</ConfigInput>