Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2024-01-03 21:32:03 +01:00 committed by GitHub
parent 4906893756
commit a92210aac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,8 @@ Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
## Basic ## Basic
[DataGenerator_no_dataugmentation.py](DataGenerator_no_dataugmentation.py)
```python ```python
from tensorflow import keras from tensorflow import keras
import numpy as np import numpy as np
@ -123,6 +125,8 @@ if __name__ == "__main__":
To the pre-processing chain **self.data_augmentation** you can add other preprocessing layers which are then applied to the input before given to the network. To the pre-processing chain **self.data_augmentation** you can add other preprocessing layers which are then applied to the input before given to the network.
[DataGenerator.py](DataGenerator.py)
```python ```python
from tensorflow import keras from tensorflow import keras
import numpy as np import numpy as np
@ -265,6 +269,8 @@ Parameters for the layers:
|[activation](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv1D)| "Activation function to use. If you don't specify anything, no activation is applied (see [keras.activations](https://www.tensorflow.org/api_docs/python/tf/keras/activations))."| |[activation](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv1D)| "Activation function to use. If you don't specify anything, no activation is applied (see [keras.activations](https://www.tensorflow.org/api_docs/python/tf/keras/activations))."|
[data_format](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv1D)| " A string, one of channels_last (default) or channels_first."| [data_format](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv1D)| " A string, one of channels_last (default) or channels_first."|
[keras_learn.py](keras_learn.py)
```python ```python
from tensorflow import keras from tensorflow import keras
from DataGenerator import DataGenerator from DataGenerator import DataGenerator
@ -382,6 +388,8 @@ for epoch_id in range(0, epoch_max):
|[tf.keras.models.load_model](https://www.tensorflow.org/api_docs/python/tf/keras/saving/load_model) | "Loads a model saved via model.save()."| |[tf.keras.models.load_model](https://www.tensorflow.org/api_docs/python/tf/keras/saving/load_model) | "Loads a model saved via model.save()."|
|[network.evaluate()](https://www.tensorflow.org/api_docs/python/tf/keras/Sequential#evaluate) | "Returns the loss value & metrics values for the model in test mode."| |[network.evaluate()](https://www.tensorflow.org/api_docs/python/tf/keras/Sequential#evaluate) | "Returns the loss value & metrics values for the model in test mode."|
[keras_test.py](keras_test.py)
```python ```python
from tensorflow import keras from tensorflow import keras
from DataGenerator import DataGenerator from DataGenerator import DataGenerator