ANN Forecast
Warning
This library is under development, none of the presented solutions are available for download.
Use continuous forest inventory databases to predict forest growth and production. Utilize artificial neural networks for greater flexibility. With this module, you will be able to estimate volume, the number of stems, basal area, among other variables of interest.
Class Parameters
ANN Trainer
AnnTrainer(df, y, *train_columns, iterator=None)
Parameters | Description |
---|---|
df | The dataframe containing the continous processed forest inventory data. |
y | The target variable for training the ANN (Y), the variable on which the ANN will be trained to predict. |
*train_columns | (*args ) Names of the columns that will be used to train the artificial neural network so that it can predict the values of Y. Must be numeric. |
iterator | (Optional) Name of the column that contains the iterator . An artificial neural network will be adjusted for each iterator . |
Class Functions
Parameters | Description |
---|---|
.fit_model() | Adjust the model using *train_columns to predict the variable Y. |
Ann structures
6 different structures of artificial neural networks will be tested. Only the result from 1 model will be returned. The model returned will be selected by the ranking function.
For the 'ann' model, the module sklearn.neural_network.MLPRegressor is used.
ANN Predictor
AnnPredictor(pkl_file)
Parameters | Description |
---|---|
pkl_file | Directory of the .pkl file that will be used for prediction. |