tensorflow-ml

tensorflow-ml is a skill for Claude Code, Codex from dallay/agents-skills. It costs 65 tokens per session (2,811 once invoked), scanned A, original, MIT.

A TensorFlow and Keras guide for building, training, evaluating, and deploying neural-network machine-learning models. TensorFlow is a framework for machine learning, while Keras provides its higher-level model-building interface.

In plain words
What is it for?
Use it to build models, prepare training data, tune and evaluate them, reuse pretrained models, save or serve models, diagnose training problems, and monitor runs with TensorBoard.
Why use it?
It gives consistent patterns for data pipelines, model design, training safeguards, transfer learning, deployment, and GPU or TPU use.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/dallay/agents-skills/tensorflow-ml
Any agent
npx skills add dallay/agents-skills --skill tensorflow-ml
Clone the repo
git clone --depth 1 https://github.com/dallay/agents-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for tensorflow-ml

README.md
[![agentmods](https://agentmods.dev/badge/skills/dallay/agents-skills/tensorflow-ml.svg)](https://agentmods.dev/skills/dallay/agents-skills/tensorflow-ml)
Your own site
<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>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,811 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 2205bc52d964, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

skills/tensorflow-ml/SKILL.md · 322 lines

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.keras for all model building. Raw tf.Module and tf.GradientTape are 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 numpy loading for training data in production. tf.data.Dataset handles prefetching, parallel mapping, and memory-efficient streaming.
  • Callbacks Are Your Safety Net: Always use EarlyStopping (patience-based), ModelCheckpoint (save best weights), and ReduceLROnPlateau. 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()

Read the full file on GitHub · 322 lines

Changes

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.

  1. 4d ago First seen · 322 lines · 65 tokens per session scan A 2205bc52d964

Subscribe to this mod's changes

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.

Related

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…

google/skills · 85 tokens

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.

google/skills · 60 tokens

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.

microsoft/agent-framework · 65 tokens

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…

google/skills · 138 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens