semvec/pypi-packages huggingface dataset:
tensorflow-history-plot 0.1.2
A tool for visualize Tensorflow history result.
License: MIT
Requires Python: >=3.6.0

# TensorflowHistoryPlot

A tool for visualize Tensorflow history result.

## Install

pip install tensorflow-history-plot

## Use

```python
num_classes = 5

model = Sequential([
    layers.Conv2D(16, 3, padding='same', activation='relu'),
    layers.MaxPooling2D(),
    layers.Conv2D(32, 3, padding='same', activation='relu'),
    layers.MaxPooling2D(),
    layers.Conv2D(64, 3, padding='same', activation='relu'),
    layers.MaxPooling2D(),
    layers.Flatten(),
    layers.Dense(128, activation='relu'),
    layers.Dense(num_classes)
])

model.compile(optimizer='adam',
              loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
              metrics=['accuracy'])

epochs = 10
history = model.fit(
    train_ds,
    validation_data=val_ds,
    epochs=epochs
)

from tensorflow_history_plot import show_acc
show_acc.plot(history)
```