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:
Identifying unknown APIs.
Assigning them to a Semantic Tier (Math, Neural, Extras).
Normalizing arguments (e.g. renaming dim to axis).
Defining the target mapping (Hub/Spoke split).
Persisting changes to the JSON knowledge base.
Classes¶
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.
This class handles the CLI workflow for identifying framework functions, normalizing them into abstract specifications, and generating the necessary JSON storage files for the Hub/Spoke architecture.
- 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’).