MCPcopy Create free account

hub / github.com/ChangWeiTan/TS-Extrinsic-Regression / functions

Functions68 in github.com/ChangWeiTan/TS-Extrinsic-Regression

↓ 7 callersMethodfit
Fit the regression model Inputs: x_train: training data (num_examples, num_timestep, num_channels) or (num_examples, num
models/classical_models.py:32
↓ 5 callersFunctioninitialise_multithread
Initialise pool workers for multi processing :param num_cores: :return:
utils/tools.py:7
↓ 4 callersMethod__init__
Initialise the regression model
models/classical_models.py:16
↓ 4 callersMethodfit
Fit Rocket Inputs: x_train: training data (num_examples, num_timestep, num_channels) y_train: training targe
models/rocket.py:141
↓ 4 callersMethodfit_transform
Fit a transformer per dimension of the series and transform the series based on the number of coefficients :param series: A set of ti
transform/transformers.py:88
↓ 4 callersFunctionload_from_tsfile_to_dataframe
Loads data from a .ts file into a Pandas DataFrame. Parameters ---------- full_file_path_and_name: str The full pathname of the .
utils/data_loader.py:36
↓ 4 callersFunctionprocess_data
This is a function to process the data, i.e. convert dataframe to numpy array :param X: :param min_len: :param normalise: :return
utils/regressor_tools.py:109
↓ 4 callersFunctionsave_test_duration
Save test time :param file_name: :param test_duration: :return:
utils/tools.py:49
↓ 4 callersFunctionsave_train_duration
Save training time :param file_name: :param test_duration: :return:
utils/tools.py:36
↓ 4 callersMethodtransform
Transform the series based on the number of coefficients :param series: A set of time series with the shape N x L x D :return
transform/transformers.py:125
↓ 3 callersFunctionbspline
(fd, n_basis, order)
smoother/smoothers.py:1
↓ 3 callersFunctionto_fd
Convert a set of time series to functional data :param series: a set of time series with the shape of N x L :param sample_points: sample
utils/data_processor.py:14
↓ 2 callersFunctionapply_kernels
(X, kernels, stride=1)
models/rocket.py:92
↓ 2 callersMethodbuild_model
Build the SVR model Inputs: model_params: parameters for SVR in dictionary format Outputs: model: in
models/classical_models.py:122
↓ 2 callersMethodbuild_model
Build the RF model Inputs: model_params: parameters for SVR in dictionary format Outputs: model: ini
models/classical_models.py:223
↓ 2 callersMethodbuild_model
Build the XGBoost model Inputs: model_params: parameters for SVR in dictionary format Outputs: model
models/classical_models.py:381
↓ 2 callersFunctioncalculate_regression_metrics
This is a function to calculate metrics for regression. The metrics being calculated are RMSE and MAE. :param y_true: :param y_pred:
utils/regressor_tools.py:154
↓ 2 callersFunctioncreate_directory
Create a directory if path doesn't exists :param directory_path: :return:
utils/tools.py:19
↓ 2 callersMethodcv
Do cross validation to optimise hyperparameters of the model
models/classical_models.py:83
↓ 2 callersFunctionfit_regressor
This is a function to fit a regression model given the name and data :param output_directory: :param regressor_name: :param X_train:
utils/regressor_tools.py:21
↓ 2 callersFunctionplot_epochs_metric
Plot the train/test metrics of Deep Learning models Inputs: hist: training history file_name: save file name model:
models/deep_learning/deep_learning_models.py:10
↓ 2 callersMethodpredict
Do prediction with Rocket Inputs: x: data for prediction (num_examples, num_timestep, num_channels) Outputs:
models/rocket.py:169
↓ 1 callersMethod__init__
(self, n_components=10)
transform/transformers.py:83
↓ 1 callersMethod_inception_module
(self, input_tensor, stride=1, activation='linear')
models/deep_learning/inception.py:64
↓ 1 callersMethod_shortcut_layer
(self, input_tensor, out_tensor)
models/deep_learning/inception.py:104
↓ 1 callersFunctionapply_kernel
(X, weights, length, bias, dilation, padding, num_channel_indices, channel_indices, stride)
models/rocket.py:60
↓ 1 callersMethodbuild_model
Build the Linear model Inputs: model_params: parameters for SVR in dictionary format Outputs: model:
models/classical_models.py:422
↓ 1 callersMethodbuild_model
Build the DL models Inputs: input_shape: input shape for the models
models/deep_learning/deep_learning_models.py:95
↓ 1 callersFunctioncreate_regressor
This is a function to create the regression model :param regressor_name: :param input_shape: :param output_directory: :param verb
utils/regressor_tools.py:49
↓ 1 callersFunctioncreate_transformer
Create a transformer :param transformer_name: :param kwargs: :return:
utils/transformer_tools.py:32
↓ 1 callersFunctionfit_transformer
Fit a transformer for a set of time series :param transformer_name: :param X_train: :param flatten: :param kwargs: :return:
utils/transformer_tools.py:8
↓ 1 callersFunctiongenerate_kernels
(input_length, num_kernels, num_channels=1)
models/rocket.py:19
↓ 1 callersMethodpredict
Do prediction using the regression model on x Inputs: x: data for prediction (num_examples, num_timestep, num_channels)
models/classical_models.py:59
↓ 1 callersMethodsummary
Provide a summary of the model
models/classical_models.py:26
↓ 1 callersFunctionuniform_scaling
This is a function to scale the time series uniformly :param data: :param max_len: :return:
utils/data_processor.py:1
Method__init__
Initialise the SVR model Inputs: output_directory: path to store results/models verbose: verbosity
models/classical_models.py:95
Method__init__
Initialise the RF model Inputs: output_directory: path to store results/models verbose: verbosity
models/classical_models.py:195
Method__init__
Initialise the XGBoost model Inputs: output_directory: path to store results/models verbose: verbosity
models/classical_models.py:299
Method__init__
Initialise the Linear model Inputs: output_directory: path to store results/models model_params: parameters
models/classical_models.py:402
Method__init__
Initialise the Rocket model Inputs: output_directory: path to store results/models n_kernels: number of rand
models/rocket.py:123
Method__init__
Initialise the regression model
models/time_series_models.py:9
Method__init__
Initialise the FCN model Inputs: output_directory: path to store results/models input_shape: input shape for
models/deep_learning/fcn.py:12
Method__init__
Initialise the DL model Inputs: output_directory: path to store results/models input_shape: input shape for
models/deep_learning/deep_learning_models.py:49
Method__init__
Initialise the InceptionNetwork model Inputs: output_directory: path to store results/models input_shape: in
models/deep_learning/inception.py:13
Method__init__
Initialise the DL model Inputs: output_directory: path to store results/models input_shape: input shape for
models/deep_learning/resnet.py:12
Method__init__
(self, pca_type="pca", smooth="none", pca_components=10, n_basis=10, bspline_order=4)
transform/transformers.py:17
Method__init__
(self, n_components=10, n_basis=10, order=4, smooth="none")
transform/transformers.py:161
Functionall_fit_transform
A function for multi-threading :param series: a set of time series to transform with the shape N x L :param pca_transformer: transformer
transform/transformers.py:303
Methodbuild_model
Build the FCN model Inputs: input_shape: input shape for the model
models/deep_learning/fcn.py:46
Methodbuild_model
Build the InceptionNetwork model Inputs: input_shape: input shape for the model
models/deep_learning/inception.py:115
Methodbuild_model
Build the ResNet model Inputs: input_shape: input shape for the model
models/deep_learning/resnet.py:45
Methodcv
Cross validation on SVR Inputs: x_train: training data (num_examples, num_features) y_train: training target
models/classical_models.py:136
Methodcv
Cross validation on RF Inputs: x_train: training data (num_examples, num_features) y_train: training target
models/classical_models.py:238
Methodcv
Cross validation on XGBoost Inputs: x_train: training data (num_examples, num_features) y_train: training ta
models/classical_models.py:322
Methodfit
Fit Linear model Inputs: x_train: training data (num_examples, num_timestep, num_channels) or (num_examples, num_feature
models/classical_models.py:439
Methodfit
Fit the regression model
models/time_series_models.py:19
Methodfit
Fit DL models Inputs: x_train: training data (num_examples, num_timestep, num_channels) y_train: training ta
models/deep_learning/deep_learning_models.py:104
Methodfit
(self, series)
transform/transformers.py:29
Methodfit_transform
(self, series)
transform/transformers.py:35
Methodfit_transform
Convert the series to its functional form, fit the transformer per dimension and transform the series based on the number of coeffici
transform/transformers.py:179
Methodpredict
Do prediction with Rocket Inputs: x: data for prediction (num_examples, num_timestep, num_channels) or (num_examples, nu
models/classical_models.py:466
Methodpredict
Do prediction using the regression model on x
models/time_series_models.py:29
Methodpredict
Do prediction with DL models Inputs: x: data for prediction (num_examples, num_timestep, num_channels) Outputs:
models/deep_learning/deep_learning_models.py:176
Functionto_fd
Convert a set of time series to functional data :param series: a set of time series with the shape of N x L :param sample_points: sample
transform/transformers.py:288
Methodtransform
(self, series)
transform/transformers.py:74
Methodtransform
Transform the series based on the number of coefficients :param series: A set of time series with the shape N x L x D :return
transform/transformers.py:224
Functiontransformer_fit_transform
A function for multi-threading :param series: a set of time series to transform with the shape N x L :param transformer: transformer to t
transform/transformers.py:264
Functiontransformer_transform
A function for multi-threading :param series: a set of time series to transform with the shape N x L :param transformer: transformer to t
transform/transformers.py:276