ml_switcheroo.cli.wizard¶

Interactive Wizard for Semantic Mapping Discovery. Updated to support Distributed Semantics (Split Specs/Mappings).

This module provides the MappingWizard class, an interactive CLI tool used by developers to categorize unmapped APIs found in a source framework. It guides the user through:

  1. Identifying unknown APIs.

  2. Assigning them to a Semantic Tier (Math, Neural, Extras).

  3. Normalizing arguments (e.g. renaming dim to axis).

  4. Defining the target mapping (Hub/Spoke split).

  5. Persisting changes to the JSON knowledge base.

Classes¶

MappingWizard

Interactive tool to build robust semantic mappings.

Module Contents¶

class ml_switcheroo.cli.wizard.MappingWizard(semantics: ml_switcheroo.semantics.manager.SemanticsManager)¶

Interactive tool to build robust semantic mappings.

semantics¶
console¶
start(package_name: str) → None¶

Starts the interactive session.

Scans the target package for APIs not currently present in the semantics manager, then iterates through them prompting the user for categorization and mapping.

Parameters:

package_name (str) – The python package to inspect (e.g., ‘torch’).