|
45 | 45 | """ |
46 | 46 | Generative(prediction_len) |
47 | 47 |
|
48 | | -This prediction methodology allows the models to produce an autonomous prediction, feeding the prediction into itself to generate the next step. |
49 | | -The only parameter needed is the number of steps for the prediction. |
| 48 | +A prediction strategy that enables models to generate autonomous multi-step |
| 49 | +forecasts by recursively feeding their own outputs back as inputs for |
| 50 | +subsequent prediction steps. |
| 51 | +
|
| 52 | +# Parameters |
| 53 | +- `prediction_len::Int`: The number of future steps to predict. |
| 54 | +
|
| 55 | +# Description |
| 56 | +
|
| 57 | +The `Generative` prediction method allows a model to perform multi-step |
| 58 | +forecasting by using its own previous predictions as inputs for future predictions. |
| 59 | +This approach is especially useful in time series analysis, where each prediction |
| 60 | +depends on the preceding data points. |
| 61 | +
|
| 62 | +At each step, the model takes the current input, generates a prediction, |
| 63 | +and then incorporates that prediction into the input for the next step. |
| 64 | +This recursive process continues until the specified |
| 65 | +number of prediction steps (`prediction_len`) is reached. |
| 66 | +
|
50 | 67 | """ |
51 | 68 | struct Generative{T} <: AbstractPrediction |
52 | 69 | prediction_len::T |
|
60 | 77 | """ |
61 | 78 | Predictive(prediction_data) |
62 | 79 |
|
63 | | -Given a set of labels as `prediction_data`, this method of prediction will return the corresponding labels in a standard Machine Learning fashion. |
| 80 | +A prediction strategy for supervised learning tasks, |
| 81 | +where a model predicts labels based on a provided set |
| 82 | +of input features (`prediction_data`). |
| 83 | +
|
| 84 | +# Parameters |
| 85 | +- `prediction_data`: The input data used for prediction, typically structured as a matrix |
| 86 | + where each column represents a sample, and each row represents a feature. |
| 87 | +
|
| 88 | +# Description |
| 89 | +
|
| 90 | +The `Predictive` prediction method is a standard approach |
| 91 | +in supervised machine learning tasks. It uses the provided input data |
| 92 | +(`prediction_data`) to produce corresponding labels or outputs based |
| 93 | +on the learned relationships in the model. Unlike generative prediction, |
| 94 | +this method does not recursively feed predictions into the model; |
| 95 | +instead, it operates on fixed input data to produce a single batch of predictions. |
| 96 | +
|
| 97 | +This method is suitable for tasks like classification, |
| 98 | +regression, or other use cases where the input features |
| 99 | +and the number of steps are predefined. |
| 100 | +
|
64 | 101 | """ |
65 | 102 | function Predictive(prediction_data) |
66 | 103 | prediction_len = size(prediction_data, 2) |
|
0 commit comments