This commit is contained in:
2025-10-26 11:33:08 +08:00
parent 809a6dbe75
commit 98f225efe4
13 changed files with 95 additions and 57 deletions

View File

@@ -23,11 +23,11 @@ def list_algorithms() -> list[str]:
return list(_algorithms.keys())
# 导入注册
from . import supermemo2
from . import sm2
register_algorithm(
algo_name=supermemo2.algo_name,
defaults=supermemo2.defaults,
revisor=supermemo2.revisor
algo_name=sm2.algo_name,
defaults=sm2.defaults,
revisor=sm2.revisor
)
__all__ = ['get_algorithm', 'list_algorithms', 'register_algorithm', 'AlgorithmConfig']

View File

@@ -0,0 +1 @@
# FSRS 算法模块, 尚未就绪

View File

@@ -1,7 +1,7 @@
import heurams.services.timer as timer
from typing import TypedDict
algo_name = "supermemo2"
algo_name = "SM-2"
class AlgodataDict(TypedDict):
efactor: float