tensortrade.stochastic.utils.helpers module¶
-
tensortrade.stochastic.utils.helpers.
convert_to_prices
(param, log_returns)[source]¶ This method converts a sequence of log returns into normal returns (exponentiation) and then computes a price sequence given a starting price, param.all_s0. :param param: the model parameters object :param log_returns: the log returns to exponentiated :return:
-
tensortrade.stochastic.utils.helpers.
convert_to_returns
(log_returns)[source]¶ This method exponentiates a sequence of log returns to get daily returns. :param log_returns: the log returns to exponentiated :return: the exponentiated returns