zoo.automl.model.tcmf package¶
Submodules¶
zoo.automl.model.tcmf.DeepGLO module¶
-
class
zoo.automl.model.tcmf.DeepGLO.DeepGLO(vbsize=150, hbsize=256, num_channels_X=[32, 32, 32, 32, 1], num_channels_Y=[32, 32, 32, 32, 1], kernel_size=7, dropout=0.2, rank=64, kernel_size_Y=7, lr=0.0005, val_len=24, end_index=-24, normalize=False, start_date='2016-1-1', freq='H', covariates=None, use_time=True, dti=None, svd=False, period=None, forward_cov=False)[source]¶ Bases:
object
zoo.automl.model.tcmf.data_loader module¶
-
class
zoo.automl.model.tcmf.data_loader.TCMFDataLoader(Ymat, covariates=None, Ycov=None, vbsize=200, hbsize=100, end_index=20000, val_len=30, shuffle=False)[source]¶ Bases:
objectData Loader Class for DeepGLO
-
next_batch()[source]¶ Returns: data is returned as pytorch tensor of shape nd*cd*td where nd is vbsize, hb is hsize and cd is the number os channels (depends on covariates) inp: input batch out: one shifted output batch vindex: strating vertical index of input batch hindex: starting horizontal index of input batch
-
zoo.automl.model.tcmf.local_model module¶
-
class
zoo.automl.model.tcmf.local_model.Chomp1d(chomp_size)[source]¶ Bases:
torch.nn.modules.module.Module-
forward(x)[source]¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
-
class
zoo.automl.model.tcmf.local_model.LocalModel(Ymat, num_inputs=1, num_channels=[32, 32, 32, 32, 32, 1], kernel_size=7, dropout=0.2, vbsize=300, hbsize=128, lr=0.0005, val_len=10, test=True, end_index=120, normalize=False, start_date='2016-1-1', freq='H', covariates=None, use_time=False, dti=None, Ycov=None)[source]¶ Bases:
object-
predict_future(data_in, covariates=None, ycovs=None, future=10, bsize=40, normalize=False, num_workers=1)[source]¶ data_in: input past data in same format of Ymat covariates: input past covariates ycovs: input past individual covariates future: number of time-points to predict bsize: batch size for processing (determine according to gopu memory limits) normalize: should be set according to the normalization used in the class initialization num_workers: number of workers to run prediction. if num_workers > 1, then prediction will run in distributed mode and there has to be an activate RayContext.
-
-
class
zoo.automl.model.tcmf.local_model.TemporalBlock(n_inputs, n_outputs, kernel_size, stride, dilation, padding, dropout=0.1, init=True)[source]¶ Bases:
torch.nn.modules.module.Module-
forward(x)[source]¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
-
class
zoo.automl.model.tcmf.local_model.TemporalBlockLast(n_inputs, n_outputs, kernel_size, stride, dilation, padding, dropout=0.2, init=True)[source]¶ Bases:
torch.nn.modules.module.Module-
forward(x)[source]¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
-
class
zoo.automl.model.tcmf.local_model.TemporalConvNet(num_inputs, num_channels, kernel_size=2, dropout=0.1, init=True)[source]¶ Bases:
torch.nn.modules.module.Module-
forward(x)[source]¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-