MCPcopy Create free account
hub / github.com/thuml/Time-Series-Library / __init__

Method __init__

exp/exp_basic.py:11–23  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

9
10class Exp_Basic(object):
11 def __init__(self, args):
12 self.args = args
13
14 # -------------------------------------------------------
15 # Automatically generate model map
16 # -------------------------------------------------------
17 model_map = self._scan_models_directory()
18
19 # Use smart dictionary
20 self.model_dict = LazyModelDict(model_map)
21
22 self.device = self._acquire_device()
23 self.model = self._build_model().to(self.device)
24
25 def _scan_models_directory(self):
26 """

Callers 1

__init__Method · 0.45

Calls 4

_acquire_deviceMethod · 0.95
_build_modelMethod · 0.95
LazyModelDictClass · 0.85

Tested by

no test coverage detected