LKCell / base_ml /base_optim.py
xiazhi1
initial commit
aea73e2
raw
history blame contribute delete
640 Bytes
# -*- coding: utf-8 -*-
# Wrappping all available PyTorch Optimizer
#
# @ Fabian Hörst, fabian.hoerst@uk-essen.de
# Institute for Artifical Intelligence in Medicine,
# University Medicine Essen
from torch.optim import (
ASGD,
LBFGS,
SGD,
Adadelta,
Adagrad,
Adam,
Adamax,
AdamW,
RAdam,
RMSprop,
Rprop,
SparseAdam,
)
OPTI_DICT = {
"Adadelta": Adadelta,
"Adagrad": Adagrad,
"Adam": Adam,
"AdamW": AdamW,
"SparseAdam": SparseAdam,
"Adamax": Adamax,
"ASGD": ASGD,
"LBFGS": LBFGS,
"RAdam": RAdam,
"RMSprop": RMSprop,
"Rprop": Rprop,
"SGD": SGD,
}