fix typos
This commit is contained in:
parent
0114a808a2
commit
dc9040dd4d
|
@ -58,8 +58,8 @@ class KBest(object):
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
max_size: int=5,
|
max_size: int=5,
|
||||||
save_fn: Callable=None,
|
save_fn: Callable[[Path], None]=None,
|
||||||
del_fn: Callable=lambda f: f.unlink()):
|
del_fn: Callable[[Path], None]=lambda f: f.unlink()):
|
||||||
self.best_records: Mapping[Path, float] = {}
|
self.best_records: Mapping[Path, float] = {}
|
||||||
self.save_fn = save_fn
|
self.save_fn = save_fn
|
||||||
self.del_fn = del_fn
|
self.del_fn = del_fn
|
|
@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from parakeet.training.chekpoint import KBest
|
from parakeet.training.checkpoint import KBest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import shutil
|
import shutil
|
||||||
|
|
Loading…
Reference in New Issue