Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/dallay/agents-skills/tensorflow-mlnpx skills add dallay/agents-skills --skill tensorflow-mlgit clone --depth 1 https://github.com/dallay/agents-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dallay/agents-skills/tensorflow-ml)<a href="https://agentmods.dev/skills/dallay/agents-skills/tensorflow-ml"><img src="https://agentmods.dev/badge/skills/dallay/agents-skills/tensorflow-ml.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00065 | $0.02811 |
| Opus 5 | $0.00032 | $0.01406 |
| Sonnet 5 | $0.00013 | $0.00562 |
| Haiku 4.5 | $0.00006 | $0.00281 |
Grade A, and why
tensorflow-ml scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 322 lines — stays where its author put it; the contents beside it link to each section on GitHub.
When to Use
- Building neural network models with Keras Sequential or Functional API.
- Setting up efficient data pipelines with
tf.data. - Training, evaluating, and tuning deep learning models.
- Applying transfer learning from pre-trained models (ResNet, MobileNet, BERT).
- Saving, loading, and serving models (SavedModel, H5, TFLite).
- Debugging training issues: overfitting, vanishing gradients, slow convergence.
- Configuring GPU/TPU acceleration and mixed precision training.
- Visualizing training with TensorBoard.
Critical Patterns
- Keras Is THE API: Use
tf.kerasfor all model building. Rawtf.Moduleandtf.GradientTapeare only for advanced custom training loops. Start with the high-level API. - Functional API Over Sequential: Use Functional API for anything beyond a simple linear stack. It supports multi-input, multi-output, shared layers, and residual connections.
- tf.data for Everything: Never use Python generators or
numpyloading for training data in production.tf.data.Datasethandles prefetching, parallel mapping, and memory-efficient streaming. - Callbacks Are Your Safety Net: Always use
EarlyStopping(patience-based),ModelCheckpoint(save best weights), andReduceLROnPlateau. Never train blind without them. - Validate on Held-Out Data: Always split data into train/validation/test. Use validation loss ( not training loss) for all tuning decisions. Test set is touched exactly once.
- Mixed Precision for Speed: Enable
tf.keras.mixed_precision.set_global_policy("mixed_float16")on modern GPUs (Volta+) for ~2x speedup with minimal accuracy impact. - SavedModel for Deployment: Always export as SavedModel format (not H5) for production serving. SavedModel preserves the computation graph and is framework-agnostic.
Code Examples
Model Building: Functional API
import tensorflow as tf
from tensorflow import keras
from keras import layers
def build_classifier(input_shape: tuple[int, ...], num_classes: int) -> keras.Model:
"""Build a CNN classifier with residual connections."""
inputs = keras.Input(shape=input_shape, name="image_input")
# Convolutional block 1
x = layers.Conv2D(32, 3, padding="same", activation="relu")(inputs)
x = layers.BatchNormalization()(x)
x = layers.Conv2D(32, 3, padding="same", activation="relu")(x)
x = layers.BatchNormalization()(x)
x = layers.MaxPooling2D()(x)
x = layers.Dropout(0.25)(x)
# Convolutional block 2 with residual
shortcut = layers.Conv2D(64, 1, strides=2, padding="same")(x)
x = layers.Conv2D(64, 3, padding="same", activation="relu")(x)
x = layers.BatchNormalization()(x)
x = layers.Conv2D(64, 3, padding="same")(x)
x = layers.BatchNormalization()(x)
x = layers.MaxPooling2D()(x)
x = layers.Add()([x, shortcut]) # Residual connection
x = layers.Activation("relu")(x)
x = layers.Dropout(0.25)(x)
# Classification head
x = layers.GlobalAveragePooling2D()(x)
x = layers.Dense(128, activation="relu")(x)
x = layers.Dropout(0.5)(x)
outputs = layers.Dense(num_classes, activation="softmax", name="predictions")(x)
return keras.Model(inputs=inputs, outputs=outputs, name="cnn_classifier")
model = build_classifier(input_shape=(224, 224, 3), num_classes=10)
model.summary()
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 322 lines · 65 tokens per session scan A 2205bc52d964
tensorflow-ml is a skill published in the GitHub repository dallay/agents-skills (2 stars, last pushed 12d ago), licensed MIT. It adds 65 tokens to every session and 2,811 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
agent-platform-rag-engine-management
Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…
agent-platform-model-registry
Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.
foundry-config-setup
Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.
google-cloud-solution-agentic-analytics-spark-knowledge-catalog
Discovers requirements and generates guidance to design and deploy a governed, secure agentic-analytics solution for data that's distributed across Google Cloud, other cloud providers, or on-premises. Data that's outside Google Cloud (such as data from Databricks, Snowflake, Salesforce, SAP, or Oracle systems) is…
training-check
Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.
nemo-automodel-launcher-config
Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.