0c6e3eaa93
* 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
17 lines
473 B
Svelte
17 lines
473 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">
|
|
export let value: number[];
|
|
|
|
let stringValue: string;
|
|
$: stringValue = value.map((v) => v.toFixed(4)).join(", ");
|
|
|
|
function update(this: HTMLInputElement): void {
|
|
value = this.value.split(", ").map((v) => Number(v));
|
|
}
|
|
</script>
|
|
|
|
<textarea value={stringValue} on:blur={update} class="w-100" />
|