Learn R Programming

tsLSTMx (version 0.1.0)

Predict Time Series Using LSTM Model Including Exogenous Variable to Denote Zero Values

Description

It is a versatile tool for predicting time series data using Long Short-Term Memory (LSTM) models. It is specifically designed to handle time series with an exogenous variable, allowing users to denote whether data was available for a particular period or not. The package encompasses various functionalities, including hyperparameter tuning, custom loss function support, model evaluation, and one-step-ahead forecasting. With an emphasis on ease of use and flexibility, it empowers users to explore, evaluate, and deploy LSTM models for accurate time series predictions and forecasting in diverse applications. More details can be found in Garai and Paul (2023) .

Copy Link

Version

Install

install.packages('tsLSTMx')

Monthly Downloads

98

Version

0.1.0

License

GPL-3

Maintainer

Mr. Sandip Garai

Last Published

January 12th, 2024

Functions in tsLSTMx (0.1.0)

embed_columns

Embed columns and create a new data frame
reshape_for_lstm

Function to reshape input data for LSTM
split_data

Split data into training and validation sets
forecast_best_model

Perform forecasting using the best model
predict_y_values

Predict y values for the training and validation sets using the best LSTM model
check_and_format_data

Check and Format Data
convert_to_tensors

Function to convert data to TensorFlow tensors
compare_predicted_vs_actual

Compare predicted and actual values for training and validation sets
best_model_on_validation

Evaluate the best LSTM model on the validation set
define_early_stopping

Function to define early stopping callback
initialize_tensorflow

Function to initialize TensorFlow and enable eager execution
convert_to_numeric_matrices

Function to convert columns to numeric matrices
ts_lstm_x_tuning

Time Series LSTM Hyperparameter Tuning