BFNet
Bases: EconomicNetwork
Source code in wt_ml/networks/bfnet.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
get_baseline(impacts, training=False)
Getting baseline from the previous week actual sales by removing impacts
Parameters:
Name | Type | Description | Default |
---|---|---|---|
impacts |
ImpactsIntermediaries
|
Intermediaries object which contains additive and multiplicative impacts. |
required |
training |
bool
|
Flag to set the trainable params. Defaults to False. |
False
|
Returns:
Type | Description |
---|---|
tuple[Tensor, dict]
|
tuple[tf.Tensor, dict[str, tf.Tensor]] : Returning the baseline by removing the additive and multiplicative effect of previous week |
Source code in wt_ml/networks/bfnet.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|