Keras Integration π§
Deep learning for humans, orchestrated by flowyml.
What you'll learn
How to track Keras training runs automatically with zero boilerplate. Add one callback, get full experiment tracking and auto-extracted model metadata for free.
Why Keras + flowyml?
- Zero-Boilerplate Tracking: No need to write
log_metricloops. - Auto-Extracted Metadata: Framework, parameters, layers, optimizerβall captured automatically.
- Training History Visualization: Interactive charts in the UI for loss, accuracy, and all metrics.
- Model Versioning: Every
model.fit()produces a versioned artifact. - Reproducibility: Capture exact hyperparameters and architecture.
π§ FlowymlKerasCallback
The core of the integration is the FlowymlKerasCallback. It automatically logs metrics, parameters, and model checkpoints during training.
Real-World Pattern: Auto-Tracking
π― Model.from_keras() Convenience Method
The Model.from_keras() method provides the easiest way to create Model assets with full metadata extraction:
π Training History Visualization
When you use FlowymlKerasCallback, your training history is automatically visualized in the FlowyML UI:
- Interactive charts for loss, accuracy, and all compiled metrics
- Per-epoch values with hover tooltips
- Log/linear scale toggle for better visualization
- Show/hide individual metrics by clicking the legend
- Zoom and pan for detailed analysis
All metrics passed to model.compile(metrics=[...]) are automatically capturedβno configuration needed!
π¦ Model Management
Models trained with the callback are automatically registered in flowyml's Model Registry.
π§ Auto-Extracted Properties
The following properties are automatically extracted from Keras models:
| Property | Description |
|---|---|
framework |
Always 'keras' |
parameters |
Total parameter count |
trainable_parameters |
Trainable parameters |
architecture |
Model name |
model_class |
Class name (Sequential, Functional, etc.) |
num_layers |
Number of layers |
layer_types |
List of layer types |
input_shape |
Model input shape |
output_shape |
Model output shape |
optimizer |
Optimizer name (Adam, SGD, etc.) |
learning_rate |
Learning rate value |
loss_function |
Loss function name |
metrics |
List of compiled metrics |
is_compiled |
Whether model is compiled |
is_built |
Whether model is built |