Neural Networks for classification

from ai4water.hyperopt import Categorical
from ai4water.datasets import MtropicsLaos
from ai4water.experiments import DLClassificationExperiments
dataset = MtropicsLaos()

#lookback = 5
#data =    dataset.make_classification(lookback_steps=lookback)

#print(data.shape)
    Not downloading the data since the directory
    /home/docs/checkouts/readthedocs.org/user_builds/ai4water-experiments/envs/latest/lib/python3.7/site-packages/ai4water/datasets/data/MtropicsLaos already exists.
    Use overwrite=True to remove previously saved files and download again
/home/docs/checkouts/readthedocs.org/user_builds/ai4water-experiments/envs/latest/lib/python3.7/site-packages/ai4water/datasets/mtropics.py:817: UserWarning: preprocessing of shapefiles can not be done because no fiona installation is found.
  warnings.warn("preprocessing of shapefiles can not be done because no fiona installation is found.")

inputs = data.columns.tolist()[0:-1] outputs = data.columns.tolist()[-1:]

exp = DLClassificationExperiments(

input_features=inputs, output_features=outputs, epochs=50, ts_args={“lookback”: lookback}, save=False

)

exp.batch_size_space = Categorical(categories=[4, 8, 12, 16, 32],

name=”batch_size”)

exp.fit(data=data,

include=[“MLP”, “CNN”, “LSTM”, “TFT”])

#exp.compare_errors('accuracy', data=data)

Total running time of the script: ( 0 minutes 0.001 seconds)

Gallery generated by Sphinx-Gallery