<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Stephanie Palero</title>
    <description>The latest articles on DEV Community by Stephanie Palero (@tephani).</description>
    <link>https://dev.to/tephani</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2010817%2F40d92a86-f298-45ae-9ea7-34be925a8d85.jpg</url>
      <title>DEV Community: Stephanie Palero</title>
      <link>https://dev.to/tephani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tephani"/>
    <language>en</language>
    <item>
      <title>AI Assistants in Productivity: Integration Capabilities That You Should Know</title>
      <dc:creator>Stephanie Palero</dc:creator>
      <pubDate>Thu, 20 Mar 2025 17:33:08 +0000</pubDate>
      <link>https://dev.to/tephani/ai-assistants-in-productivity-integration-capabilities-that-matter-4m24</link>
      <guid>https://dev.to/tephani/ai-assistants-in-productivity-integration-capabilities-that-matter-4m24</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj81xfaaijw2amou1fv9l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj81xfaaijw2amou1fv9l.png" alt=" " width="800" height="295"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Chatbots have come a long way—from simple virtual assistants to powerful AI tools that seamlessly integrate into your daily workflow. No longer limited to basic conversations, today’s AI assistants can automate tasks, enhance productivity, and work alongside you in the very tools you use every day.&lt;/p&gt;

&lt;p&gt;At their core, chatbots are computer programs designed to simulate human conversation, traditionally used for customer service and task automation. However, modern AI assistants like &lt;strong&gt;ChatGPT by OpenAI&lt;/strong&gt;, &lt;strong&gt;Gemini by Google&lt;/strong&gt;, and &lt;strong&gt;Claude by Anthropic&lt;/strong&gt; have evolved far beyond that, becoming essential productivity partners.&lt;/p&gt;

&lt;p&gt;This transformation took off in &lt;strong&gt;2022-2023&lt;/strong&gt;, when AI chatbots moved from standalone tools to deeply integrated workplace solutions. &lt;strong&gt;Microsoft Copilot&lt;/strong&gt; brought &lt;strong&gt;ChatGPT&lt;/strong&gt; into &lt;strong&gt;Office 365&lt;/strong&gt;, enabling AI-driven assistance in &lt;strong&gt;Word&lt;/strong&gt;, &lt;strong&gt;Excel&lt;/strong&gt;, and &lt;strong&gt;Teams&lt;/strong&gt;. &lt;strong&gt;Google Gemini (formerly Duet AI)&lt;/strong&gt; enhanced &lt;strong&gt;Gmail&lt;/strong&gt;, &lt;strong&gt;Docs&lt;/strong&gt;, and &lt;strong&gt;Sheets&lt;/strong&gt;, making AI-powered collaboration effortless. Meanwhile, &lt;strong&gt;Claude by Anthropic&lt;/strong&gt; found its niche in &lt;strong&gt;Slack and Notion&lt;/strong&gt;, supporting team communication and knowledge management.&lt;/p&gt;

&lt;p&gt;Now, AI assistants are more than just chatbots—they are &lt;strong&gt;intelligent workplace copilots&lt;/strong&gt;, streamlining workflows, automating reports, summarizing meetings, drafting emails, and even analyzing data. So, you might wonder, which AI assistant fits your workflow best?&lt;/p&gt;




&lt;h1&gt;
  
  
  Gemini + Google Workplace
&lt;/h1&gt;

&lt;p&gt;Speaking of productivity, &lt;strong&gt;Google Workplace&lt;/strong&gt; would be a familiar name for many of you. Whether it's writing in Docs, collaborating in Sheets, or managing emails in Gmail, Google has long been a go-to platform for seamless online work. Now, with the integration of &lt;strong&gt;Google Gemini&lt;/strong&gt;, these tools have been supercharged with AI-drive capabilities that enhance efficiency like never before.&lt;/p&gt;

&lt;h3&gt;
  
  
  Google Workplace Integration
&lt;/h3&gt;

&lt;p&gt;Google has embedded Gemini, its most advanced AI model, directly into its ecosystem. Here’s how it enhances some of the most widely used tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gmail&lt;/strong&gt;: Gemini can summarize long email threads, suggest quick replies, and even draft emails based on context. This feature is especially useful for professionals who manage high volumes of communication daily.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExMXdocDJ5b2prNHFxZzcwcWgxYXp2czg5dmt2dWU2bGd6N3JuanJwMiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FoSPWooMVvcTI3d6Wlg%2Fgiphy.gif" width="480" height="300"&gt;See collaboration with &lt;a href="https://support.google.com/mail/answer/14199860?hl=en&amp;amp;co=GENIE.Platform%3DDesktop" rel="noopener noreferrer"&gt;Gemini in Gmail (Workspace Labs)&lt;/a&gt;.

&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docs&lt;/strong&gt;: Writing and editing become effortless with Gemini’s ability to generate content, refine wording, and provide contextual suggestions—perfect for reports, proposals, and brainstorming sessions.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExcnM2ejM5azc4aTJ6ZWQ2a3NrMndyb2lydGl4bWp0aXl5N3pjY2J4eiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F4tHGZlhi7dvemlX67e%2Fgiphy.gif" width="480" height="300"&gt;See collaboration with &lt;a href="https://support.google.com/docs/answer/14206696?hl=en" rel="noopener noreferrer"&gt;Gemini in Docs (Workspace Labs)&lt;/a&gt;.

&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sheets&lt;/strong&gt;: Need help organizing data? Gemini can generate formulas, automate data insights, and even analyze trends within spreadsheets.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZHI4YWhhdjl6ajNuemUweTFhYzBzMXBoMmh3b2I4cHhtMmRjNm1vYiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FK3VBaGHrBUqtG9Nxu2%2Fgiphy.gif" width="480" height="300"&gt;See collaboration with &lt;a href="https://support.google.com/docs/answer/14218565?hl=en" rel="noopener noreferrer"&gt;Gemini in Sheets (Workspace Labs)&lt;/a&gt;.

&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Meet&lt;/strong&gt;: Gemini enhances virtual meetings with real-time summaries, action item extraction, and even automated note-taking for those who missed the discussion.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExYnNoODJ6YWd0eGtnNm94cGxybW9uaWt0djBlcW9ub2xqMmM0bm51aSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FLVZt3tRrXft1aJzVQ8%2Fgiphy.gif" width="480" height="300"&gt;See collaboration with &lt;a href="https://support.google.com/meet/answer/14441737?hl=en" rel="noopener noreferrer"&gt;Gemini in Meet (Workspace Labs)&lt;/a&gt;.

&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NotebookLM&lt;/strong&gt;: An AI-powered research and note-taking tool, NotebookLM integrates with Google Docs and other sources, helping users synthesize information efficiently.See Google's &lt;a href="https://notebooklm.google/" rel="noopener noreferrer"&gt;NotebookLM&lt;/a&gt; for more info.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExcHUyb2pxbWd3bnZ0bnJ6eGpyMXMzZDVpMmc3czNucHplanQ4Z281eSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FF6V9mFmBpYp2uSjbMR%2Fgiphy.gif" width="480" height="270"&gt;See Google's &lt;a href="https://notebooklm.google/" rel="noopener noreferrer"&gt;NotebookLM&lt;/a&gt;.

&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  ChatGPT + Copilot
&lt;/h1&gt;

&lt;p&gt;Microsoft's integration of OpenAI's technology into its productivity suite has created one of the most powerful AI-enhanced work environments available to finance professionals. Copilot, powered by GPT-4, transforms how financial teams interact with the Microsoft 365 ecosystem.&lt;/p&gt;

&lt;h3&gt;
  
  
  Microsoft 365 Integration
&lt;/h3&gt;

&lt;p&gt;Copilot seamlessly embeds AI capabilities across all Microsoft applications, creating a unified experience where ChatGPT’s language capabilities enhance everyday financial tasks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Excel&lt;/strong&gt;: For finance professionals, this integration is revolutionary. Copilot can generate complex financial formulas, create sophisticated models, and analyze large datasets with simple prompts. A financial analyst can ask, "&lt;em&gt;Create a cash flow projection for the next 12 months based on this historical data&lt;/em&gt;," and Copilot will generate the appropriate formulas and visualization.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZjQ0aWwwanJpdzlvYmZ4YmJ3dHBuMmtlNjFvdzM1bWVpeWM5Y2Q2OSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FlPyI0oCCEwLsPjsmn2%2Fgiphy.gif" width="480" height="270"&gt;See more with &lt;a href="https://www.microsoft.com/en-us/microsoft-365/excel/ai-for-excel" rel="noopener noreferrer"&gt;Copilot in Excel&lt;/a&gt;.

&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PowerPoint&lt;/strong&gt;: Financial presentations become more efficient with Copilot generating slides based on financial reports, creating visual representations of financial data, and suggesting improvements to existing presentations. This is particularly valuable for investor relations teams and financial advisors who regularly create client-facing materials.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExb2xxeDBzcWhvcm8wcnpudWFjZHh5ZnRycGRqdWF6NW1zaHdsOWJwbCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FLvzyRmCtWMQ1Vx0wLL%2Fgiphy.gif" width="480" height="270"&gt;See more with &lt;a href="https://www.microsoft.com/en-us/microsoft-365/powerpoint/ai-powerpoint-generator" rel="noopener noreferrer"&gt;Copilot in Powerpoint&lt;/a&gt;.

&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Word&lt;/strong&gt;: Documentation for financial compliance, research reports, and client proposals can be drafted, edited, and refined through natural language prompts. Copilot can help ensure consistency in financial terminology and maintain regulatory compliance language.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExdTU0MWRybWQxb2xsOWMwZTU1ZmVsaHpoZXA3em9wYXE4Zjh3Z3lhNyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F7cux8IdrDsxew04biJ%2Fgiphy.gif" width="480" height="270"&gt;See more with &lt;a href="https://www.microsoft.com/en-us/microsoft-365/blog/2023/03/16/introducing-microsoft-365-copilot-a-whole-new-way-to-work/" rel="noopener noreferrer"&gt;Copilot in Word&lt;/a&gt;.

&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outlook&lt;/strong&gt;: Email management becomes more efficient with Copilot summarizing lengthy financial correspondence, drafting responses to client inquiries, and helping prioritize communications by importance.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExbzhsMjB1Ymg4YnZ4bTFxbWphYmdwemRzdDkxZHBjcGc1MXFic2xzaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FYbmj0pyDZJ5j5jN8nS%2Fgiphy.gif" width="480" height="270"&gt;See more with &lt;a href="https://www.microsoft.com/en-us/microsoft-365/blog/2023/03/16/introducing-microsoft-365-copilot-a-whole-new-way-to-work" rel="noopener noreferrer"&gt;Copilot in Outlook&lt;/a&gt;.

&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Teams&lt;/strong&gt;: Financial team collaboration is enhanced with meeting summaries, action item extraction, and the ability to query past discussions about specific financial topics.

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp7rajybrs5o6x55z8u5z.png" width="800" height="450"&gt;See more with &lt;a href="https://www.microsoft.com/en-us/microsoft-teams/group-chat-software" rel="noopener noreferrer"&gt;Copilot in Teams&lt;/a&gt;.

&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Claude + Slack &amp;amp; Notion
&lt;/h1&gt;

&lt;p&gt;Anthropic's Claude has carved out a unique position in the AI assistant landscape by integrating deeply with collaborative platforms that many finance teams already use daily. These integrations emphasize Claude's strengths in understanding context, processing documents, and maintaining professional communication.&lt;/p&gt;

&lt;h3&gt;
  
  
  Claude in Slack
&lt;/h3&gt;

&lt;p&gt;Claude's integration with Slack creates a powerful AI assistant that lives where financial teams communicate:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ym1qxz6hqgo4w0xyf91.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ym1qxz6hqgo4w0xyf91.png" width="800" height="432"&gt;&lt;/a&gt;&lt;br&gt;See more of &lt;a href="https://www.anthropic.com/claude-in-slack" rel="noopener noreferrer"&gt;Claude in Slack&lt;/a&gt;.
    &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Channel Integration&lt;/strong&gt;: Claude can be added to relevant finance channels, enabling teams to collaborate with AI assistance in real-time without switching contexts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document Analysis&lt;/strong&gt;: Finance professionals can upload financial statements, reports, or research papers directly in Slack for Claude to analyze, summarize, or extract key information.
Thread-Based Context: Claude maintains conversation context within Slack threads, making it ideal for extended financial discussions or problem-solving sessions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Meeting Preparation&lt;/strong&gt;: Claude can help prepare for client meetings by organizing discussion points and relevant financial data based on previous conversations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Claude can remember your entire Slack thread or pull content from websites you share with it. Think of Claude as a friendly, hard-working addition to your paid workspace - speak to it naturally and give it very specific instructions about exactly what you’d like it to do. Watch Claude iterate on the task at hand, just like an engaged employee.&lt;/p&gt;

&lt;h3&gt;
  
  
  Claude in Notion
&lt;/h3&gt;

&lt;p&gt;The integration of Claude with Notion transforms knowledge management for finance teams:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Forvhfwlrkjwybx7qswfr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Forvhfwlrkjwybx7qswfr.png" width="800" height="428"&gt;&lt;/a&gt;&lt;br&gt;See more of &lt;a href="https://www.anthropic.com/customers/notion" rel="noopener noreferrer"&gt;Claude in Notion&lt;/a&gt;.
    &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Financial Documentation&lt;/strong&gt;: Claude helps create, organize, and maintain financial documentation, from process guidelines to market analyses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Financial Dashboards&lt;/strong&gt;: Finance teams can create Notion dashboards where Claude helps interpret data and generate insights.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Knowledge Base Creation&lt;/strong&gt;: Claude assists in building comprehensive financial knowledge bases, ensuring information is accessible and up-to-date.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compliance Tracking&lt;/strong&gt;: Teams can use Claude to help maintain compliance documentation and track regulatory changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client Information Management&lt;/strong&gt;: Wealth management teams can use Claude in Notion to organize client information and generate personalized financial advice templates.&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Pros, Cons, and Pricing Considerations
&lt;/h1&gt;

&lt;p&gt;When evaluating AI assistants for financial applications, understanding the balance between cost, capability, and accessibility is crucial. Each platform offers distinct advantages and limitations that may align differently with various financial roles and organizational structures.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;&lt;center&gt;ChatGPT&lt;/center&gt;&lt;/th&gt;
      &lt;th&gt;&lt;center&gt;Microsoft Copilot&lt;/center&gt;&lt;/th&gt;
      &lt;th&gt;&lt;center&gt;Claude&lt;/center&gt;&lt;/th&gt;
      &lt;th&gt;&lt;center&gt;Gemini&lt;/center&gt;&lt;/th&gt;
    &lt;/tr&gt;
&lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;
&lt;b&gt;Free Tier:&lt;/b&gt;&lt;br&gt;
        - Basic access to GPT-3.5 &lt;br&gt;
        - No Microsoft 365 integration &lt;br&gt;
        - Limited context window &lt;br&gt;
        - Subject to usage limits &lt;br&gt;
        - No access to GPT-4
      &lt;/td&gt;
      &lt;td&gt;
&lt;b&gt;Free Tier:&lt;/b&gt;&lt;br&gt;
        - AI assistance in Windows 11 &amp;amp; Edge &lt;br&gt;
        - Limited functionality &lt;br&gt;
        - No advanced AI models &lt;br&gt;
        - No Microsoft 365 access &lt;br&gt;
        - Standard response times
      &lt;/td&gt;
      &lt;td&gt;
&lt;b&gt;Free Tier:&lt;/b&gt;&lt;br&gt;
        - Basic Claude model access &lt;br&gt;
        - Limited uploads &amp;amp; queries &lt;br&gt;
        - No premium features &lt;br&gt;
        - Standard response times &lt;br&gt;
        - No Claude Pro models
      &lt;/td&gt;
      &lt;td&gt;
&lt;b&gt;Free Tier:&lt;/b&gt;&lt;br&gt;
        - Basic Gemini AI &lt;br&gt;
        - Limited Google Workspace integration &lt;br&gt;
        - No advanced models &lt;br&gt;
        - Standard response times &lt;br&gt;
        - No voice or app integrations
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;
&lt;b&gt;ChatGPT Plus: $20&lt;/b&gt;&lt;br&gt;
        - GPT-4.5 access &lt;br&gt;
        - Extended messaging &amp;amp; uploads &lt;br&gt;
        - Advanced voice &amp;amp; video mode &lt;br&gt;
        - Custom GPTs &amp;amp; projects &lt;br&gt;
        - Early access to new features
      &lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;
&lt;b&gt;ChatGPT Pro: $200&lt;/b&gt;&lt;br&gt;
        - Unlimited GPT-4o access &lt;br&gt;
        - Best compute for hard questions &lt;br&gt;
        - Extended deep research &lt;br&gt;
        - More Sora video generation &lt;br&gt;
        - Operator research preview
      &lt;/td&gt;
      &lt;td&gt;
&lt;b&gt;Copilot Pro: $20&lt;/b&gt;&lt;br&gt;
        - AI credits for Microsoft 365 apps &lt;br&gt;
        - Advanced AI grounding &lt;br&gt;
        - Faster image generation &lt;br&gt;
        - Early access to features &lt;br&gt;
        - Works across Google &amp;amp; Microsoft
      &lt;/td&gt;
      &lt;td&gt;
&lt;b&gt;Claude Pro: $18&lt;/b&gt;&lt;br&gt;
        - More usage than Free &lt;br&gt;
        - Organize documents &amp;amp; chats &lt;br&gt;
        - Access Claude 3.7 Sonnet &lt;br&gt;
        - Extended thinking mode &lt;br&gt;
        - Early access to features
      &lt;/td&gt;
      &lt;td&gt;
&lt;b&gt;Gemini Advanced: $19.99&lt;/b&gt;&lt;br&gt;
        - 2.0 Flash &amp;amp; Thinking models &lt;br&gt;
        - Limited deep research access &lt;br&gt;
        - Google app integrations &lt;br&gt;
        - Gemini Live voice chat &lt;br&gt;
        - Custom AI experts with Gems
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;
&lt;b&gt;ChatGPT Team:&lt;/b&gt; &lt;br&gt;
        - $25/user (annual), $30 (monthly) &lt;br&gt;
        - Higher GPT-4o message limits &lt;br&gt;
        - Secure &amp;amp; collaborative workspace &lt;br&gt;
        - Team data excluded from training &lt;br&gt;
        - Custom GPTs for teams
      &lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;
&lt;b&gt;Claude Team: $25&lt;/b&gt;&lt;br&gt;
        - $25/user (annual), $30 (monthly) &lt;br&gt;
        - More usage than Pro &lt;br&gt;
        - Central billing &amp;amp; admin tools &lt;br&gt;
        - Early collaboration access &lt;br&gt;
        - Premium support
      &lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h1&gt;
  
  
  So, Which Assistant Fits for You?
&lt;/h1&gt;

&lt;p&gt;The integration of AI assistants into financial workflows represents more than just technological adoption—it's a fundamental shift in how financial work gets done. The right choice depends on your organization's specific needs, existing technology ecosystem, and workflow priorities.&lt;/p&gt;

&lt;p&gt;As these platforms continue to evolve, we can expect even deeper integrations, more specialized financial capabilities, and increasingly sophisticated analysis tools. The financial institutions that strategically incorporate these AI assistants into their workflows today will be better positioned to leverage future advancements.&lt;/p&gt;

&lt;p&gt;When selecting an AI assistant for your finance team, consider not just the current capabilities but also the alignment with your long-term digital transformation strategy. The most valuable implementation will be one that enhances your team's existing strengths while addressing specific productivity bottlenecks in your financial workflows.&lt;/p&gt;

&lt;p&gt;By thoughtfully matching AI assistant capabilities to your unique financial processes, you can achieve significant gains in productivity, insight generation, and client service—ultimately transforming how your organization delivers financial expertise in an increasingly AI-enhanced industry.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmwcnfync7oe7tfpukrui.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmwcnfync7oe7tfpukrui.png" alt=" " width="800" height="577"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
    </item>
    <item>
      <title>GPT-4.5 vs. Claude 3.7 Sonnet vs. Gemini 2.0 Flash: A No-Nonsense Guide</title>
      <dc:creator>Stephanie Palero</dc:creator>
      <pubDate>Wed, 19 Mar 2025 14:17:06 +0000</pubDate>
      <link>https://dev.to/tephani/gpt-45-vs-claude-37-sonnet-vs-gemini-20-flash-a-no-nonsense-guide-28ae</link>
      <guid>https://dev.to/tephani/gpt-45-vs-claude-37-sonnet-vs-gemini-20-flash-a-no-nonsense-guide-28ae</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc5pg9xvutj62us9r4giu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc5pg9xvutj62us9r4giu.png" alt=" " width="800" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Large Language Models (LLMs) have become increasingly sophisticated, with companies stacking up impressive capabilities through new releases and updates. In the world of AI, advancement is constant, with models accumulating more parameters, training data, and fine-tuning techniques. This rapid evolution adds more value to both the general public and the tech community. But with all these various evolving models, how do we differentiate them from each other? Which one should we use for a particular task?&lt;/p&gt;

&lt;p&gt;In this article, we will dive into the latest flagship models from the three leading AI companies as of March 2025: &lt;strong&gt;OpenAI's GPT-4.5&lt;/strong&gt;, &lt;strong&gt;Anthropic's Claude 3.7 Sonnet&lt;/strong&gt;, and &lt;strong&gt;Google's Gemini 2.0 Flash&lt;/strong&gt;. Each represents the cutting edge of what their respective developers have to offer. But before we compare them directly, let's clarify how a chatbot interface is a different entity than the underlying AI model powering it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the Core: Models vs Chatbots
&lt;/h2&gt;

&lt;p&gt;It's essential to distinguish between the LLM itself (the "model") and the platform through which we interact with it (the "chatbot"). Think of the LLM as the engine, the sophisticated algorithms and vast datasets that enable AI capabilities. The chatbot is the vehicle, the user interface that allows us to leverage that engine. One LLM can power multiple chatbots, and a single chatbot interface can offer access to various LLMs.&lt;/p&gt;

&lt;p&gt;According to the &lt;a href="https://www.demandsage.com/chatbot-statistics/" rel="noopener noreferrer"&gt;Chatbot Statistics 2025&lt;/a&gt;, over 987 million people use AI chatbots globally. It has grown quite an enormous number compared to the past years and among the top five are Meta AI, ChatGPT, Google Gemini, Microsoft Copilot, and Claude.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqixuvysw65m72fq78z8i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqixuvysw65m72fq78z8i.png" alt="Most Popular AI Chatbots Worldwide" width="800" height="418"&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;
    Figure 1. Most Popular AI Chatbots Worldwide. Source: &lt;a href="https://www.demandsage.com/chatbot-statistics/" rel="noopener noreferrer"&gt;DemandSage (2025)&lt;/a&gt;, '65 Chatbot Statistics for 2025 — New Data Released,' accessed March 18, 2025.&lt;br&gt;
  
  &lt;/p&gt;

&lt;p&gt;Seeing how much the user base has grown, the need to address its key difference in identifying which would better fit for your needs is highly needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Latest Advancements
&lt;/h2&gt;

&lt;p&gt;We'll focus on the core LLMs powering these platforms:&lt;/p&gt;

&lt;h3&gt;
  
  
  OpenAI’s GPT-4o and GPT-4.5:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GPT-4o&lt;/strong&gt;: OpenAI's versatile multimodal model that processes text, audio, and images simultaneously. It offers fast, natural interactions while maintaining strong performance across various tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-4.5&lt;/strong&gt;: OpenAI's most advanced model, available exclusively to Pro users and developers. It features improved reasoning, a broader knowledge base, better alignment with user intent, and enhanced "emotional intelligence." While comprehensive benchmark data is limited, OpenAI claims reduced hallucination rates and more natural interactions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Anthropic’s Claude 3.7 Sonnet:
&lt;/h3&gt;

&lt;p&gt;Anthropic’s Sonnet can be categorized as &lt;em&gt;Standard&lt;/em&gt; or &lt;em&gt;Extended Thinking&lt;/em&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Standard Mode&lt;/strong&gt;: The latest iteration of Anthropic's Sonnet line, representing their most intelligent model to date. It combines strong reasoning with relatively fast processing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extended Thinking Mode&lt;/strong&gt;: An industry-first hybrid reasoning approach that enables visible step-by-step problem-solving. This mode allows Claude to analyze problems methodically, plan solutions, and consider multiple perspectives before responding.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Google DeepMind’s Gemini 2.0 Flash:
&lt;/h3&gt;

&lt;p&gt;Building on the 1.5 Flash foundation, this model prioritizes speed and efficiency while delivering improvements in multimodal understanding, coding capabilities, complex instruction following, and function calling. It's specifically designed to power responsive, agentic experiences.&lt;/p&gt;

&lt;center&gt;&lt;h5&gt;AI Model Performance Comparison&lt;/h5&gt;&lt;/center&gt;

&lt;p&gt;&lt;small&gt;&lt;/small&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
  &lt;tr&gt;
    &lt;th&gt;&lt;/th&gt;
    &lt;th&gt;&lt;small&gt;GPT-4o&lt;/small&gt;&lt;/th&gt;
    &lt;th&gt;&lt;small&gt;Claude 3.7 Sonnet (Standard)&lt;/small&gt;&lt;/th&gt;
    &lt;th&gt;&lt;small&gt;GPT-4.5 (Premium)&lt;/small&gt;&lt;/th&gt;
    &lt;th&gt;&lt;small&gt;Claude 3.7 Sonnet (Extended Thinking)&lt;/small&gt;&lt;/th&gt;
    &lt;th&gt;&lt;small&gt;Gemini 2.0 Flash&lt;/small&gt;&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;Company&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;OpenAI&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;Anthropic&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;OpenAI&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;Anthropic&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;Google DeepMind&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;Released&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;May 13, 2024&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;February 24, 2025&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;February 27, 2025&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;February 24, 2025&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;February 5, 2025&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;MMLU-Pro (Reasoning Knowledge)&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;77%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;80%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;-&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;84%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;78%&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;GPQA Diamond (Scientific Reasoning)&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;51%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;66%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;71%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;77%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;62%&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;MATH-500 (Quantitative Reasoning)&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;79%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;84%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;-&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;95%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;93%&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;AIME 2024 (Competition Math)&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;11%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;24%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;37%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;(not yet verified)&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;49%&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;HumanEval (Coding)&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;94%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;92%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;-&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;98%&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;90%&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;Speed (tokens per second)&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;116&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;81&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;13&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;82&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;250&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;
&lt;b&gt;&lt;small&gt;Latency&lt;/small&gt;&lt;/b&gt; &lt;small&gt;(lower is better)&lt;/small&gt;
&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;0.48&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;0.41&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;0.78&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;0.38&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;0.31&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;Pricing per 1M Tokens (API)&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;$15&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;$15&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;$75&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;$15&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;$0.4&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
&lt;small&gt;&lt;em&gt;Table 1. Key metrics comparison. Source of data: &lt;a href="https://artificialanalysis.ai/" rel="noopener noreferrer"&gt;Artificial Analysis (2025)&lt;/a&gt;, accessed March 18, 2025.&lt;/em&gt;&lt;/small&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Has the Best Intelligence Index?
&lt;/h2&gt;

&lt;p&gt;When it comes to reasoning capabilities, the data reveals some fascinating insights about today's leading models:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude 3.7 Sonnet in Extended Thinking&lt;/strong&gt; emerges as the clear reasoning champion across all benchmarks. This model excels across all reasoning benchmarks, particularly in complex mathematics where it approaches human expert performance. What makes this achievement remarkable is how Claude can show its work, breaking down problems step-by-step in a way that's both transparent and educational.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OpenAI's GPT-4.5 Premium&lt;/strong&gt; takes the second spot in the reasoning hierarchy. While OpenAI hasn't released comprehensive benchmark data, the available metrics suggest impressive scientific reasoning capabilities. However, this processing power comes at a cost – GPT-4.5 operates significantly slower than its competitors, reflecting the computational intensity of its advanced reasoning processes.&lt;/p&gt;

&lt;p&gt;Surprisingly, Google's speed-focused &lt;strong&gt;Gemini 2.0 Flash&lt;/strong&gt; demonstrates unexpectedly strong reasoning abilities. Despite being designed primarily for efficiency, it performs admirably on mathematical reasoning tasks and knowledge-based assessments. This suggests Google has found ways to optimize both speed and intelligence.&lt;/p&gt;

&lt;p&gt;Even in its standard mode, &lt;strong&gt;Claude 3.7 Sonnet&lt;/strong&gt; maintains excellent reasoning capabilities, outperforming GPT-4o across various benchmarks. This is particularly evident in complex mathematical reasoning, where Claude's standard mode still demonstrates sophisticated problem-solving abilities.&lt;/p&gt;

&lt;p&gt;While &lt;strong&gt;GPT-4o&lt;/strong&gt; ranks lower in pure reasoning benchmarks, it still offers strong general capabilities. Its multimodal design prioritizes versatility over specialized reasoning, making it better suited for applications requiring balanced performance across different tasks rather than the most complex analytical challenges.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xk70kh4vkr4woklb9yq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xk70kh4vkr4woklb9yq.png" alt="A question from FINANCEBENCH" width="800" height="369"&gt;&lt;/a&gt;&lt;br&gt;Figure 2. A question from FINANCEBENCH. The&lt;br&gt;
correct answer is given by the human expert on the left.
  &lt;/p&gt;

&lt;h2&gt;
  
  
  Which Model is the Most Cost-Effective?
&lt;/h2&gt;

&lt;p&gt;The economics of AI models reveal stark differences in value propositions and cost-effectiveness varies dramatically depending on your needs. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gemini 2.0 Flash&lt;/strong&gt; is undeniably the price champion at just $0.4 per million tokens – roughly 37× cheaper than premium models. Combined with its blazing 250 tokens/second processing speed and lowest latency (0.31), it delivers exceptional value for high-volume, time-sensitive applications. Despite its budget pricing, it maintains competitive performance across reasoning benchmarks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GPT-4o&lt;/strong&gt; and &lt;strong&gt;Claude 3.7 Sonnet (Standard)&lt;/strong&gt; are identically priced at $15 per million tokens, placing them in the mid-range. GPT-4o offers faster processing (116 tokens/sec vs. 81), while Claude edges ahead in reasoning benchmarks. Both represent strong value propositions for general professional use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude 3.7 Sonnet (Extended Thinking)&lt;/strong&gt; maintains the same $15 per million token pricing as standard mode, making it an extraordinary value proposition given its superior performance across all reasoning benchmarks. This positions it as perhaps the best overall value for reasoning-intensive tasks despite not being the fastest option.&lt;/p&gt;

&lt;p&gt;At the premium end of the spectrum, &lt;strong&gt;GPT-4.5&lt;/strong&gt; commands a substantial price premium that's difficult to justify for most applications. It represents a significant price premium at $75 per million tokens – 5× the cost of GPT-4o and Claude, and nearly 188× more expensive than Gemini 2.0 Flash. Combined with its slower processing speed (13 tokens/sec), it's difficult to justify for most applications unless its specific reasoning capabilities are mission-critical and budget constraints are secondary considerations.&lt;/p&gt;

&lt;center&gt;&lt;h5&gt;Intelligence Index vs. Price&lt;/h5&gt;&lt;/center&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fawxdgh9l9fgu3me1d9pf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fawxdgh9l9fgu3me1d9pf.png" alt="Image description" width="800" height="361"&gt;&lt;/a&gt;&lt;br&gt;Figure 3. Intelligence Vs Price.&lt;br&gt;
Source: &lt;a href="https://artificialanalysis.ai/" rel="noopener noreferrer"&gt;Artificial Analysis (2025)&lt;/a&gt;, accessed March 18, 2025.
  &lt;/p&gt;

&lt;h2&gt;
  
  
  Data, Bias, and Security Considerations
&lt;/h2&gt;

&lt;p&gt;Beyond performance metrics, each of these AI systems represents different philosophical approaches to data, bias, and security – factors that may be just as important as raw capabilities for many organizations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GPT-4o&lt;/strong&gt; and &lt;strong&gt;GPT-4.5&lt;/strong&gt; benefit from OpenAI's extensive data collection practices, including web data, books, and user interactions. However, this raises concerns about data provenance and potential biases. OpenAI has implemented RLHF (Reinforcement Learning from Human Feedback) and red teaming to address these issues, though independent evaluations suggest some political biases remain. Security-wise, OpenAI offers enterprise-grade data encryption and retention controls.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude 3.7 Sonnet (Standard and Extended Thinking)&lt;/strong&gt; reflects Anthropic's “&lt;em&gt;Constitutional AI&lt;/em&gt;” approach, which explicitly encodes values and safety principles into the model's training. This methodology has shown advantages in reducing harmful outputs and certain types of biases. Anthropic has been particularly transparent about their data sources and filtering processes, emphasizing high-quality, properly licensed training data. Claude offers strong data privacy guarantees, with options for complete data deletion.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gemini 2.0 Flash&lt;/strong&gt; leverages Google's vast data resources and infrastructure advantages. However, this model has faced criticism regarding aggressive data collection practices and has shown inconsistent performance on bias benchmarks, particularly around political neutrality and cultural representations. Its security benefits from Google's extensive enterprise-grade infrastructure and compliance certifications, though organizations should weigh these against potential data governance concerns.&lt;/p&gt;

&lt;p&gt;For financial institutions and other organizations working with sensitive information, these considerations extend beyond technical performance. Claude's constitutional approach may offer advantages in highly regulated environments, while Gemini's cost benefits might be offset by potential data governance concerns depending on regulatory requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  Side-by-Side Comparison: Key Metrics
&lt;/h2&gt;

&lt;p&gt;Looking at these models side by side reveals distinct performance profiles that translate into different real-world strengths.&lt;/p&gt;

&lt;center&gt;
&lt;small&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;&lt;b&gt;Top Model&lt;/b&gt;&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;Raw Speed&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;Gemini 2.0 Flash (250 tokens/sec)&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;Reasoning Strength&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;Claude 3.7 Extended Thinking&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;Coding Ability&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;Claude 3.7 Extended Thinking (98%)&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;small&gt;Cost Efficiency&lt;/small&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;small&gt;Gemini 2.0 Flash ($0.4)&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;/small&gt;
&lt;/center&gt;

&lt;p&gt;&lt;small&gt;&lt;em&gt;Table 2. Intelligence Vs Price. Source: Artificial Analysis 2025 (&lt;a href="https://artificialanalysis.ai/" rel="noopener noreferrer"&gt;https://artificialanalysis.ai/&lt;/a&gt;), accessed March 18, 2025.&lt;/em&gt;&lt;/small&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Raw Speed&lt;/strong&gt;: Gemini 2.0 Flash (250 tokens/sec) &amp;gt; GPT-4o (116 tokens/sec) &amp;gt; Claude 3.7 Sonnet (81-82 tokens/sec) &amp;gt; GPT-4.5 Premium (13 tokens/sec)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reasoning Strength&lt;/strong&gt;: Claude 3.7 Extended Thinking &amp;gt; GPT-4.5 Premium &amp;gt; Gemini 2.0 Flash &amp;gt; Claude 3.7 Standard &amp;gt; GPT-4o&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coding Ability&lt;/strong&gt;: Claude 3.7 Extended Thinking (98%) &amp;gt; GPT-4o (94%) &amp;gt; Claude 3.7 Standard (92%) &amp;gt; Gemini 2.0 Flash (90%)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost Efficiency&lt;/strong&gt;: Gemini 2.0 Flash ($0.4) &amp;gt; Claude models &amp;amp; GPT-4o ($15) &amp;gt; GPT-4.5 Premium ($75)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For financial applications, the choice ultimately depends on specific needs. Time-sensitive trading operations might benefit most from Gemini's speed, while complex financial modeling and risk analysis could justify Claude's superior reasoning capabilities. GPT-4o offers a balanced middle ground, while GPT-4.5 Premium remains appropriate only for the most demanding and budget-insensitive applications.&lt;/p&gt;

</description>
      <category>chatgpt</category>
      <category>ai</category>
    </item>
    <item>
      <title>Which Model Does it Better in a Knowledge-Based Evaluation?</title>
      <dc:creator>Stephanie Palero</dc:creator>
      <pubDate>Thu, 13 Mar 2025 17:37:43 +0000</pubDate>
      <link>https://dev.to/tephani/which-model-does-it-better-in-a-knowledge-based-evaluation-3lga</link>
      <guid>https://dev.to/tephani/which-model-does-it-better-in-a-knowledge-based-evaluation-3lga</guid>
      <description>&lt;p&gt;In the rapidly evolving landscape of AI, Claude, GPT, and Gemini stand out as leading Large Language Models (LLMs). Each model brings unique strengths to the table, but how do they stack up against each other in terms of performance? &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgvc943bpqkyftfhh7rro.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgvc943bpqkyftfhh7rro.png" alt=" " width="800" height="330"&gt;&lt;/a&gt;&lt;em&gt;Image from SearchEngine Journal&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;First thing's first, we'll only dive into their performance in the &lt;strong&gt;&lt;a href="https://arxiv.org/abs/2009.03300?spm=a2ty_o01.29997169.0.0.3d4dc921SBlpDd&amp;amp;file=2009.03300" rel="noopener noreferrer"&gt;MMLU (Massive Multitask Language Understanding)&lt;/a&gt;&lt;/strong&gt; benchmark. It is used to test general knowledge and reasoning across 57 subjects. &lt;/p&gt;

&lt;p&gt;So, does your favorite model reason that well?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fua9ukpogxk7pwrzlw9l2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fua9ukpogxk7pwrzlw9l2.png" alt=" " width="800" height="150"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;IF we take a look at the figure above, those scores represent the models' ability to answer questions correctly across a wide range of topics, with higher scores indicating better performance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Top Performers:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GPT-4o&lt;/strong&gt; leads with a score of &lt;strong&gt;88.7%&lt;/strong&gt;, showcasing its exceptional general knowledge and reasoning capabilities. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude-3-Opus&lt;/strong&gt; closely follows with &lt;strong&gt;86.8%&lt;/strong&gt;, demonstrating its strong performance in complex tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-4&lt;/strong&gt; achieves &lt;strong&gt;86.5%&lt;/strong&gt;, slightly trailing behind Claude-3-Opus but still excelling in most scenarios.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GPT-4o's top score of 88.7% reflects its dominance in general knowledge tasks, making it ideal for academic or research-oriented applications. However, while it excels in accuracy, they require significant computational resources.&lt;/p&gt;

&lt;p&gt;The performance comparison reveals a clear hierarchy among the models. GPT-4o and Claude-3-Opus lead the pack, with GPT-4 close behind. Gemini offers a versatile middle ground, while the Claude-3 series provides options tailored to different needs. Ultimately, the choice of model depends on the specific requirements of your project—whether you prioritize accuracy, efficiency, or versatility.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.searchenginejournal.com/chatgpt-vs-gemini-vs-claude/483690/" rel="noopener noreferrer"&gt;https://www.searchenginejournal.com/chatgpt-vs-gemini-vs-claude/483690/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://wielded.com/blog/gpt-4o-benchmark-detailed-comparison-with-claude-and-gemini" rel="noopener noreferrer"&gt;https://wielded.com/blog/gpt-4o-benchmark-detailed-comparison-with-claude-and-gemini&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Diabetes Classification Made Simple: Implementing KNN in Python</title>
      <dc:creator>Stephanie Palero</dc:creator>
      <pubDate>Wed, 19 Feb 2025 18:06:40 +0000</pubDate>
      <link>https://dev.to/tephani/diabetes-classification-made-simple-implementing-knn-in-python-4dpc</link>
      <guid>https://dev.to/tephani/diabetes-classification-made-simple-implementing-knn-in-python-4dpc</guid>
      <description>&lt;p&gt;Getting started with machine learning is no easy task—especially if you're unfamiliar with the mathematical foundations behind the algorithms. But what if I told you that you don't need to be a math expert to create your very own classification model? With &lt;strong&gt;scikit-learn&lt;/strong&gt;, a powerful and beginner-friendly Python library, you can dive into machine learning and build practical models in no time.&lt;/p&gt;

&lt;p&gt;In this blog, I’ll walk you through the process of creating a &lt;strong&gt;classification model&lt;/strong&gt; using scikit-learn. For this demonstration, we’ll work with a diabetes prediction dataset. While this experiment won’t produce a clinically reliable model (for that, you’d need more advanced research), it will help you grasp the fundamentals of supervised learning and how to apply them using Python.&lt;/p&gt;

&lt;p&gt;This tutorial is designed to introduce you to the basics of supervised learning and show you how to implement it step-by-step using Python and scikit-learn. In this demonstration, we’ll focus on classification . Specifically, we’ll build a binary classification model to predict whether a person has diabetes.&lt;/p&gt;




&lt;h2&gt;
  
  
  About the Dataset
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.kaggle.com/datasets/iammustafatz/diabetes-prediction-dataset" rel="noopener noreferrer"&gt;Diabetes prediction dataset&lt;/a&gt; is a collection of medical and demographic data from patients, along with their diabetes status (positive or negative). The dataset includes the following features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Age : The patient’s age.&lt;/li&gt;
&lt;li&gt;Gender : The patient’s gender.&lt;/li&gt;
&lt;li&gt;BMI : Body Mass Index, a measure of body fat based on height and weight.&lt;/li&gt;
&lt;li&gt;Hypertension : Whether the patient has hypertension (yes/no).&lt;/li&gt;
&lt;li&gt;Heart Disease : Whether the patient has heart disease (yes/no).&lt;/li&gt;
&lt;li&gt;Smoking History : The patient’s smoking habits.&lt;/li&gt;
&lt;li&gt;HbA1c Level : A measure of average blood sugar levels over the past 2-3 months.&lt;/li&gt;
&lt;li&gt;Blood Glucose Level : The patient’s current blood glucose level.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As there are two outcomes here - Diagnosis – 0: no presence of Diabetes, 1: indicating presence of Diabetes, this is known as binary classification.&lt;/p&gt;




&lt;h2&gt;
  
  
  Preparing the Dataset
&lt;/h2&gt;

&lt;p&gt;Before building the model, we need to prepare the dataset. This involves:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Loading the Data&lt;/strong&gt;: Importing the dataset into our Python environment. Click the link &lt;a href="https://www.kaggle.com/datasets/iammustafatz/diabetes-prediction-dataset" rel="noopener noreferrer"&gt;here&lt;/a&gt; and download the dataset. You can also download via kagglehub or Kaggle CLI. Make sure that you can access your dataset on the same directory as where your &lt;a href="https://jupyter.org/" rel="noopener noreferrer"&gt;jupyter notebook&lt;/a&gt; is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Exploring the Data&lt;/strong&gt;: Understanding the structure and distribution of the data.&lt;/p&gt;

&lt;p&gt;Before using supervised learning, make sure that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No missing values&lt;/li&gt;
&lt;li&gt;Data in numeric format&lt;/li&gt;
&lt;li&gt;Data stored in pandas DataFrame or NumPy array
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;matplotlib.pyplot&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;plt&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;sklearn.neighbors&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;KNeighborsClassifier&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;sklearn.model_selection&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;train_test_split&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;sklearn.preprocessing&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;LabelEncoder&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;./diabetes_prediction_dataset.csv&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;head&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2gpqsyutqxnuxqhdc0hg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2gpqsyutqxnuxqhdc0hg.png" alt=" " width="800" height="188"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Preprocessing the Data&lt;/strong&gt;: Handling missing values, encoding categorical variables, and scaling numerical features. In this dataset, we have two features having the &lt;em&gt;object&lt;/em&gt; data type.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsxmzgc58g2tqvlmm5nra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsxmzgc58g2tqvlmm5nra.png" alt=" " width="499" height="342"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To fix this, we will utilize a label encoder to transform our data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;le&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;LabelEncoder&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;gender_le&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;le&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fit_transform&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;gender&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;smoking_history_le&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;le&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fit_transform&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;smoking_history&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gender&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;smoking_history&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;inplace&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gender&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;gender_le&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;smoking_history&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;smoking_history_le&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output should be:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ayblu7lkzgfmyoy4dpf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ayblu7lkzgfmyoy4dpf.png" alt=" " width="554" height="339"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Building the Model
&lt;/h2&gt;

&lt;p&gt;Now that the data is ready, we’ll train a K-Nearest Neighbors (KNN) classifier. KNN is a simple yet effective algorithm for classification tasks. It works by finding the K closest data points (neighbors) in the training set and making predictions based on their labels.&lt;/p&gt;

&lt;p&gt;Here’s what we’ll do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Split the data into training and testing sets.&lt;/li&gt;
&lt;li&gt;Train the KNN model on the training data.&lt;/li&gt;
&lt;li&gt;Tune the hyperparameters (e.g., choosing the right value of K).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We’ll implement this step-by-step using Python and scikit-learn.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;diabetes&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;values&lt;/span&gt;
&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;diabetes&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;values&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;shape&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;shape&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;X_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_test&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;train_test_split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;test_size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;random_state&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stratify&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;knn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_train&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;knn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_test&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="n"&gt;train_accuracies&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="n"&gt;test_accuracies&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="n"&gt;neighbors&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;arange&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;26&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;neighbor&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;neighbors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;knn&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;KNeighborsClassifier&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n_neighbors&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;neighbor&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;knn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_train&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;train_accuracies&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;neighbor&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;knn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_train&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;test_accuracies&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;neighbor&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;knn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_test&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;k = &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;neighbor&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;: Train Accuracy = &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;train_accuracies&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;neighbor&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;, Test Accuracy = &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;test_accuracies&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;neighbor&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you've run it all, you should be able to see something like this:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftdmh4bgtqnqyo2107ww8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftdmh4bgtqnqyo2107ww8.png" alt=" " width="607" height="531"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If plotted, it would be like this:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft7hvc50n0026wi3g6uvs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft7hvc50n0026wi3g6uvs.png" alt=" " width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Seems like peak accuracy actually occurs around 13 neighbors. Let's try that value out and evaluate the model.&lt;/p&gt;
&lt;h2&gt;
  
  
  Evaluating the Model
&lt;/h2&gt;

&lt;p&gt;To assess the model’s performance, we’ll use metrics such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Accuracy : The percentage of correct predictions.&lt;/li&gt;
&lt;li&gt;Precision, Recall, and F1-Score : Measures to evaluate the model’s ability to correctly classify positive cases (diabetic patients).&lt;/li&gt;
&lt;li&gt;Confusion Matrix : A breakdown of true positives, true negatives, false positives, and false negatives.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These metrics will give us a comprehensive understanding of how well our model performs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;y_pred&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;knn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;predict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;accuracy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;accuracy_score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_pred&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Accuracy: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;accuracy&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;precision&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;precision_score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_pred&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Precision: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;precision&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;recall&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;recall_score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_pred&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Recall: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;recall&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;f1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;f1_score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_pred&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;F1-Score: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;f1&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;conf_matrix&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;confusion_matrix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_pred&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Confusion Matrix:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conf_matrix&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsbk3pkp5yds082s2xj0z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsbk3pkp5yds082s2xj0z.png" alt=" " width="663" height="526"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, there is high accuracy meaning most predictions are correct. Precision is good, the model predicts positive correct most of the time. However, there is low recall, meaning many actual positives are misclassified as negative. Recall needs improvement.&lt;/p&gt;

&lt;p&gt;We can lower the number of our neighbor to 11 and then compare the results.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwmpcpss0yo6uh6h12wia.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwmpcpss0yo6uh6h12wia.png" alt=" " width="655" height="526"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Accuracy dropped (98.39% → 95.18%): The model made slightly more mistakes overall.&lt;/li&gt;
&lt;li&gt;Precision slightly decreased (95.4% → 92.86%): More false positives (FP increased from 55 → 92).&lt;/li&gt;
&lt;li&gt;Recall improved (44.6% → 46.94%): Fewer false negatives (FN decreased from 1,412 → 1,353).&lt;/li&gt;
&lt;li&gt;F1-Score increased (60.7% → 62.36%): A better balance between precision and recall.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this tutorial, we explored the basics of supervised learning and built a binary classification model to predict diabetes using the K-Nearest Neighbors algorithm. While this model is far from perfect, it serves as an excellent starting point for anyone new to machine learning.&lt;/p&gt;

&lt;p&gt;By following this guide, you’ve taken your first step into the world of machine learning. From here, you can experiment with other algorithms, optimize hyperparameters, and explore more complex datasets.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Why Data Analysts are the Detectives of the Data World</title>
      <dc:creator>Stephanie Palero</dc:creator>
      <pubDate>Fri, 08 Nov 2024 19:24:21 +0000</pubDate>
      <link>https://dev.to/tephani/why-data-analysts-are-the-detectives-of-the-data-world-2pco</link>
      <guid>https://dev.to/tephani/why-data-analysts-are-the-detectives-of-the-data-world-2pco</guid>
      <description>&lt;p&gt;&lt;em&gt;A detective studies a board filled with clues, linking people, places, and events to uncover the truth. Similarly, a data analyst connects figures, trends, and patterns within data to reveal hidden insights.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExeDRmN3hkMWUwcDlpa293NzU4cHk1MGp3enIwdm92bmJ4emQwMHc2ZiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/h1QI7dgjZUJO60nu2X/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExeDRmN3hkMWUwcDlpa293NzU4cHk1MGp3enIwdm92bmJ4emQwMHc2ZiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/h1QI7dgjZUJO60nu2X/giphy.gif" width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Both of these roles require an eye for detail, critical thinking, and an unyielding curiosity. They are united by the thrill of the chase, whether it's for a missing person or an insight buried in data. Through logic, intuition, and a systematic approach, they turn chaos into clarity—solving puzzles one clue at a time. &lt;/p&gt;

&lt;p&gt;In this blog, we'll explore the similarities between detectives and data analysts, shedding light on how these roles, while different in function, share a core approach to interpreting complex information and solving mysteries.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Data Analyst?
&lt;/h2&gt;

&lt;p&gt;As data continues to grow, data analysis has become an essential field that powers decision-making across industries. Data analysts are the "&lt;em&gt;detectives&lt;/em&gt;" of the data world, responsible for uncovering trends, finding patterns, and transforming raw data into actionable insights. Thanks to data analysts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your search results on the internet reflect your interests.&lt;/li&gt;
&lt;li&gt;Retail stores maximize profits on seasonal items like Halloween candy.&lt;/li&gt;
&lt;li&gt;Online ads are tailored to your preferences.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Data analysts play a transformative role across fields—from healthcare to finance to marketing—by turning data into insights that shape everyday life.&lt;/p&gt;




&lt;p&gt;Data analysis follows a structured process much like a detective’s investigation, where each phase helps ensure accuracy and useful outcomes. Here’s how the process mirrors a detective's journey in solving a case:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F737qmyrxngs2qwc7bejm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F737qmyrxngs2qwc7bejm.png" width="800" height="516"&gt;&lt;/a&gt;&lt;br&gt;Six Phases of Data Analysis
  &lt;/p&gt;

&lt;h3&gt;
  
  
  1. Ask Phase
&lt;/h3&gt;

&lt;p&gt;Your goal here is to understand the problem or question to be answered. This often involves engaging with stakeholders to clarify the purpose.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A detective gathers all the details about a case by speaking to witnesses and understanding the nature of the crime, data analysts meet with stakeholders to define the question they're trying to answer. Both aim to get a full picture of the task before diving in.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tip:&lt;/strong&gt; Clearly define the problem and document any assumptions. Make sure to cover everything, you need to know what they want and clarify what the goal is.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Prepare Phase
&lt;/h3&gt;

&lt;p&gt;In this phase, you will identify and collect relevant data. This includes choosing reliable data sources and ensuring data quality.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Sherlock Holmes (even with his amazing deduction prowess) looks for credible sources—witnesses, &lt;del&gt;the inside of your left shoe&lt;/del&gt;, evidence, or past records—to build his case. Data analysts similarly gather trustworthy data sources to ensure their analysis is based on reliable, relevant information.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tip:&lt;/strong&gt; Always check data sources for credibility and relevance to the question at hand.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Process Phase
&lt;/h3&gt;

&lt;p&gt;This is all about cleaning and organizing your data. Tasks may include removing inconsistencies, filling missing values, and transforming data formats for easier analysis.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Like a detective sifting through evidence, separating facts from misinformation, and organizing clues, a data analyst removes inconsistencies, fills gaps (null values), and organizes data into a usable format (something easy to process). Both roles require attention to detail to make sure no mistakes interfere with the process.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tip:&lt;/strong&gt; Use tools like Python or R to automate cleaning steps, making the process more efficient.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Analyze Phase
&lt;/h3&gt;

&lt;p&gt;Now you have to conduct the analysis to identify patterns, trends, and insights. This could include statistical calculations or machine learning models depending on the complexity.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;This is where the detective connects the dots, drawing connections between clues to form a theory. The data analyst, much like the detective, uses various tools to reveal patterns or anomalies, ultimately building a “story” that makes sense of the data.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Simple Checklist:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Ensure data quality and accuracy.&lt;/li&gt;
&lt;li&gt;Validate assumptions with statistical tests.&lt;/li&gt;
&lt;li&gt;Identify and address any outliers.&lt;/li&gt;
&lt;li&gt;Use data visualization tools like Matplotlib or Tableau for better clarity.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Share Phase
&lt;/h3&gt;

&lt;p&gt;This phase will now require your communication skills. You will now present findings to stakeholders using data visualizations or reports.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;After forming a theory, a detective presents their case to a judge or jury, simplifying complex information into a story that others can follow. Similarly, a data analyst presents findings to stakeholders, using data visualizations and focusing on the most relevant insights to ensure their story is understood.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tip:&lt;/strong&gt; Tailor the presentation to your audience, focusing on key insights and actionable recommendations.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  6. Act Phase
&lt;/h3&gt;

&lt;p&gt;Put insights into &lt;u&gt;action&lt;/u&gt;. This could mean implementing a new strategy or refining an existing process based on data.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Once a detective has solved a case, their work impacts real outcomes, like arresting a suspect or preventing future crimes. In the same way, a data analyst’s insights lead to action—whether it’s refining a business strategy, improving a product, or enhancing customer experience. Both roles rely on the results of their investigations to make a meaningful impact.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tip:&lt;/strong&gt; Encourage feedback from stakeholders to refine future analyses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each phase of data analysis brings the analyst closer to solving a "&lt;em&gt;mystery&lt;/em&gt;," much like a detective’s investigative process, transforming raw information into valuable insights that guide real-world decisions.&lt;/p&gt;




&lt;h3&gt;
  
  
  Balancing Gut Instinct with Data-Driven Decision-Making
&lt;/h3&gt;

&lt;p&gt;At the heart of data-driven decision making is data itself. Data analysts are encouraged to rely on data, but in certain situations, gut instinct may play a role, especially when data is limited or under time constraints. &lt;strong&gt;However&lt;/strong&gt;, relying solely on gut instinct can introduce bias, while relying solely on data can overlook contextual nuances. A balance of both, therefore, is key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Make sure to:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Evaluate the quality and quantity of data available.&lt;/li&gt;
&lt;li&gt;Assess time constraints and urgency.&lt;/li&gt;
&lt;li&gt;Consider stakeholder expectations and goals.&lt;/li&gt;
&lt;li&gt;Ask yourself: &lt;em&gt;Am I answering the question being asked&lt;/em&gt;? 

&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqpubb5m9uoucxyynr2ov.png" width="800" height="392"&gt;Why gut instinct can be a problem.

&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Data + Business Knowledge = Mystery Solved
&lt;/h4&gt;

&lt;p&gt;A quick shoutout to Google’s Analytics course, which sparked the idea behind this blog. Like detectives, data analysts rely on evidence to make informed and accurate decisions. Both roles follow a methodical approach to problem-solving, where each clue—whether a data point or a piece of evidence—brings them closer to uncovering the truth.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Analysts as Detectives: Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Just as detectives gather evidence to crack a case, data analysts dig through data to unearth insights. The similarities are clear: both require sharp attention to detail, a structured process, and a talent for weaving together stories from their findings.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How do you balance data and intuition in your own decisions? Share your thoughts in the comments below.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>analyst</category>
      <category>computerscience</category>
    </item>
  </channel>
</rss>
