Untitled
# Create a visual concept map similar to the user's provided example for the evolution of AI technologies. # Define nodes for AI-related trends and their relationships ai_nodes = { "Computers (1950s)": "Foundation of modern AI; enabled automation and problem-solving.", "Robots (1990s)": "Introduction of autonomous systems like Roomba.", "Smartphones (2000s)": "AI enters consumer devices with virtual assistants like Siri.", "Smart Devices (2010s)": "AI-powered IoT devices, e.g., Alexa, Google Home.", "Generative AI (2020s)": "Advanced AI models like ChatGPT revolutionize communication.", "Mobile Apps": "AI enhances productivity and entertainment on the go.", "Virtual Assistants": "AI tools integrated into devices for ease of use (e.g., Siri).", "Autonomous Vehicles": "AI-driven cars and transport systems emerge.", "Gaming AI": "AI improves gaming experience with smarter NPCs and strategy.", } # Define edges to show relationships and chronological progression ai_edges = [ ("Computers (1950s)", "Robots (1990s)"), ("Robots (1990s)", "Smartphones (2000s)"), ("Smartphones (2000s)", "Smart Devices (2010s)"), ("Smart Devices (2010s)", "Generative AI (2020s)"), ("Smartphones (2000s)", "Mobile Apps"), ("Smart Devices (2010s)", "Virtual Assistants"), ("Robots (1990s)", "Autonomous Vehicles"), ("Gaming AI", "Generative AI (2020s)") ] # Create a new graph G_ai = nx.DiGraph() # Add nodes and edges to the graph G_ai.add_nodes_from(ai_nodes.keys()) G_ai.add_edges_from(ai_edges) # Create a layout for the graph pos_ai = nx.spring_layout(G_ai, seed=42) # Draw the concept map for AI evolution plt.figure(figsize=(14, 8)) nx.draw_networkx_nodes(G_ai, pos_ai, node_color="lightblue", node_size=3000) nx.draw_networkx_edges(G_ai, pos_ai, arrowstyle="->", arrowsize=15, edge_color="gray") nx.draw_networkx_labels(G_ai, pos_ai, labels=ai_nodes, font_size=9, font_color="black") # Title and display plt.title("Evolution of AI Technologies: From Computers to ChatGPT", fontsize=14) plt.axis("off") plt.show()
Leave a Comment