MoE_ECGFormer / configs /hparams.py
splendor1811's picture
Upload 14 files
bcf646b verified
raw
history blame contribute delete
541 Bytes
def get_hparams_class(dataset_name):
"""Return the algorithm class with the given name."""
if dataset_name not in globals():
raise NotImplementedError("Algorithm not found: {}".format(dataset_name))
return globals()[dataset_name]
class Supervised:
def __init__(self):
super(Supervised, self).__init__()
self.train_params = {
'num_epochs': 100,
'batch_size': 128,
'weight_decay': 1e-4,
'learning_rate': 1e-3,
'feature_dim': 1*128
}