Close Menu
    Trending
    • Future of Business Analytics in This Evolution of AI | by Advait Dharmadhikari | Jun, 2025
    • You’re Only Three Weeks Away From Reaching International Clients, Partners, and Customers
    • How Brain-Computer Interfaces Are Changing the Game | by Rahul Mishra | Coding Nexus | Jun, 2025
    • How Diverse Leadership Gives You a Big Competitive Advantage
    • Making Sense of Metrics in Recommender Systems | by George Perakis | Jun, 2025
    • AMD Announces New GPUs, Development Platform, Rack Scale Architecture
    • The Hidden Risk That Crashes Startups — Even the Profitable Ones
    • Systematic Hedging Of An Equity Portfolio With Short-Selling Strategies Based On The VIX | by Domenico D’Errico | Jun, 2025
    Finance StarGate
    • Home
    • Artificial Intelligence
    • AI Technology
    • Data Science
    • Machine Learning
    • Finance
    • Passive Income
    Finance StarGate
    Home»Machine Learning»I Was Confused Too 🤯. In this short article, I aim to create… | by Alejandro Perez | Feb, 2025
    Machine Learning

    I Was Confused Too 🤯. In this short article, I aim to create… | by Alejandro Perez | Feb, 2025

    FinanceStarGateBy FinanceStarGateFebruary 12, 2025No Comments2 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    On this quick article, I purpose to create a set of 5 mnemonic guidelines to remove my confusion in regards to the Confusion Matrix.

    First Rule: Undesirable positives

    In binary classification, the “constructive” label doesn’t suggest that the result is “good” or “fascinating” — it simply signifies the category that’s of explicit curiosity or concern:

    • For shopper retention, the constructive class is a churned shopper 🫣
    • In a safety verify on the airport, the constructive class may very well be that the suspect carries a gun 🔫
    • In a medical check, the constructive class is that the affected person has the illness 🦠

    Second Rule: Predictions on prime, truths apart

    Use this rule to recollect how to attract the confusion matrix.

    Classical Confussion Matrix: Fact on the Facet, Prediction on Prime

    Third Rule: “Safety verify”

    I like to make use of the “Safety Test” Metaphor to make sense of the 4 quadrants:

    “The Safety Test”
    • 🙂 True Optimistic 🙂: Job properly carried out.
    • 🥲 False Optimistic 🥲: Sorry for embarrassing you, you may put your sneakers again on.
    • 😱 False Unfavorable 😱: We fucked-up.
    • ☺️ True Unfavorable ☺️: Job properly carried out.

    On this case, our mannequin must be tuned to reduce false negatives.

    Fourth Rule: To be exact we want all of the positives

    The confusion matrix is used to calculate two key metrics: precision and recall.

    SOFT_PRED = mannequin.predict_proba(X_test)[:, 1]  # Choose the second column (index 1) for all rows

    actual_positive = (y_test == 1)
    actual_negative = (y_test == 0)

    predicted_positive = (SOFT_PRED >= 0.5)
    predicted_negative = (SOFT_PRED

    true_positives = (predicted_positive & actual_positive).sum()
    false_positives = (predicted_positive & actual_negative).sum()

    true_negatives = (predicted_negative & actual_negative).sum()
    false_negatives = (predicted_negative & actual_positive).sum()

    Keep in mind, “precision makes use of all of the positives”. Precision measures the fraction of appropriate constructive predictions — out of all of the shoppers we recognized as churning, what number of churned?”

    precision = true_positives / (true_positives + false_positives)

    Fifth Rule: Recall is about re-calling all your pals

    What number of of your pals are you able to recall?

    • True Positives: The buddies you efficiently keep in mind.
    • False Negatives: The buddies you by accident neglect.
    recall = true_positives / (true_positives + false_negatives)

    A recall of 52% tells you that you simply didn’t name 48% of your pals

    Thanks for studying ❤️



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous Article5 ways having a financial plan can give you peace of mind
    Next Article Harnessing cloud and AI to power a sustainable future 
    FinanceStarGate

    Related Posts

    Machine Learning

    Future of Business Analytics in This Evolution of AI | by Advait Dharmadhikari | Jun, 2025

    June 14, 2025
    Machine Learning

    How Brain-Computer Interfaces Are Changing the Game | by Rahul Mishra | Coding Nexus | Jun, 2025

    June 14, 2025
    Machine Learning

    Making Sense of Metrics in Recommender Systems | by George Perakis | Jun, 2025

    June 14, 2025
    Add A Comment

    Comments are closed.

    Top Posts

    Is Fortnite Apple Blocked From the Apple App Store?

    May 16, 2025

    What’s Your Hacker Name? Tale of Weak passwords | by Zeeshan Saghir | Apr, 2025

    April 3, 2025

    What AI’s Gaming Origins Can Teach Us About Business Breakthroughs

    March 7, 2025

    Grab a Lifetime of Help for All Aspects of Business Operations for You and Your Clients

    April 23, 2025

    How AI is Revolutionizing Data Visualization for Businesses | by Emmanuel Otaesiri | Mar, 2025

    March 21, 2025
    Categories
    • AI Technology
    • Artificial Intelligence
    • Data Science
    • Finance
    • Machine Learning
    • Passive Income
    Most Popular

    HP Is Laying Off Up to 2,000 Employees By October

    March 1, 2025

    Mastering Pandas for Big Data Handling

    April 5, 2025

    Driving MidJourney Prompts with Silhouettes | by Daniel Vera | Feb, 2025

    February 6, 2025
    Our Picks

    How Likely Are You to Be Diagnosed with Cancer? A Data-Driven Approach | by Shirish Ghimire | Feb, 2025

    February 10, 2025

    5 Ways CEOs Can Assess and Reset Their Company Culture

    May 8, 2025

    The Art of the Phillips Curve

    May 13, 2025
    Categories
    • AI Technology
    • Artificial Intelligence
    • Data Science
    • Finance
    • Machine Learning
    • Passive Income
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2025 Financestargate.com All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.