Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Banks Ought to Embrace Stablecoin Yield in CLARITY Act: White Home Adviser

    February 14, 2026

    Lecturers Jobs 2026 in Opal Crown College Quetta 2026 Job Commercial Pakistan

    February 14, 2026

    Hatsune Miku Honkai: Star Rail Artwork Shared Forward of 4.0

    February 14, 2026
    Facebook X (Twitter) Instagram
    Saturday, February 14
    Trending
    • Banks Ought to Embrace Stablecoin Yield in CLARITY Act: White Home Adviser
    • Lecturers Jobs 2026 in Opal Crown College Quetta 2026 Job Commercial Pakistan
    • Hatsune Miku Honkai: Star Rail Artwork Shared Forward of 4.0
    • Arsenal held by Brentford in EPL
    • Airbnb says a 3rd of its buyer help is now dealt with by AI within the U.S. and Canada
    • 5 Life Adjustments That Sign It is Time for a Checking Account
    • Metrolinx CEO guarantees fewer authorized battles on future Ontario transit initiatives
    • Defiant TTAP stage sit-in at Parliament Home over Imran’s well being, vow to stay till calls for fulfilled – Pakistan
    • Analysts from Fortrade Assessment the Summit from a Monetary Level of View
    • XRP In The Highlight After Ripple CEO’s Gorgeous Disclosure That May Change Its Outlook
    Facebook X (Twitter) Instagram Pinterest Vimeo
    The News92The News92
    • Home
    • World
    • National
    • Sports
    • Crypto
    • Travel
    • Lifestyle
    • Jobs
    • Insurance
    • Gaming
    • AI & Tech
    • Health & Fitness
    The News92The News92
    Home - AI & Tech - [In-Depth Guide] The Full CTGAN + SDV Pipeline for Excessive-Constancy Artificial Knowledge
    AI & Tech

    [In-Depth Guide] The Full CTGAN + SDV Pipeline for Excessive-Constancy Artificial Knowledge

    Naveed AhmadBy Naveed AhmadFebruary 14, 2026No Comments1 Min Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    [In-Depth Guide] The Full CTGAN + SDV Pipeline for Excessive-Constancy Artificial Knowledge
    Share
    Facebook Twitter LinkedIn Pinterest Email


    metadata_dict = metadata.to_dict()
    
    
    diagnostic = DiagnosticReport()
    diagnostic.generate(real_data=actual, synthetic_data=synthetic_sdv, metadata=metadata_dict, verbose=True)
    print("Diagnostic rating:", diagnostic.get_score())
    
    
    high quality = QualityReport()
    high quality.generate(real_data=actual, synthetic_data=synthetic_sdv, metadata=metadata_dict, verbose=True)
    print("High quality rating:", high quality.get_score())
    
    
    def show_report_details(report, title):
       print(f"n===== {title} particulars =====")
       props = report.get_properties()
       for p in props:
           print(f"n--- {p} ---")
           particulars = report.get_details(property_name=p)
           strive:
               show(particulars.head(10))
           besides Exception:
               show(particulars)
    
    
    show_report_details(diagnostic, "DiagnosticReport")
    show_report_details(high quality, "QualityReport")
    
    
    train_real, test_real = train_test_split(
       actual, test_size=0.25, random_state=42, stratify=actual[target_col]
    )
    
    
    def make_pipeline(cat_cols, num_cols):
       pre = ColumnTransformer(
           transformers=[
               ("cat", OneHotEncoder(handle_unknown="ignore"), cat_cols),
               ("num", "passthrough", num_cols),
           ],
           the rest="drop"
       )
       clf = LogisticRegression(max_iter=200)
       return Pipeline([("pre", pre), ("clf", clf)])
    
    
    pipe_syn = make_pipeline(categorical_cols, numerical_cols)
    pipe_syn.match(synthetic_sdv.drop(columns=[target_col]), synthetic_sdv[target_col])
    
    
    proba_syn = pipe_syn.predict_proba(test_real.drop(columns=[target_col]))[:, 1]
    y_true = (test_real[target_col].astype(str).str.incorporates(">")).astype(int)
    auc_syn = roc_auc_score(y_true, proba_syn)
    print("Artificial-train -> Actual-test AUC:", auc_syn)
    
    
    pipe_real = make_pipeline(categorical_cols, numerical_cols)
    pipe_real.match(train_real.drop(columns=[target_col]), train_real[target_col])
    
    
    proba_real = pipe_real.predict_proba(test_real.drop(columns=[target_col]))[:, 1]
    auc_real = roc_auc_score(y_true, proba_real)
    print("Actual-train -> Actual-test AUC:", auc_real)
    
    
    model_path = "ctgan_sdv_synth.pkl"
    synth.save(model_path)
    print("Saved synthesizer to:", model_path)
    
    
    from sdv.utils import load_synthesizer
    synth_loaded = load_synthesizer(model_path)
    
    
    synthetic_loaded = synth_loaded.pattern(1000)
    print("Loaded synthesizer pattern:")
    show(synthetic_loaded.head())



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleRespiration Straightforward: How Pool Chemical substances Can Have an effect on Lung Well being
    Next Article Pakistan and India followers flock to Colombo, windfall for tourism
    Naveed Ahmad
    • Website
    • Tumblr

    Related Posts

    AI & Tech

    Airbnb says a 3rd of its buyer help is now dealt with by AI within the U.S. and Canada

    February 14, 2026
    AI & Tech

    Zillow Has Gone Wild—for AI

    February 14, 2026
    AI & Tech

    OpenAI removes entry to sycophancy-prone GPT-4o mannequin

    February 14, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Demo
    Top Posts

    Oatly loses ‘milk’ branding battle in UK Supreme Courtroom

    February 12, 20261 Views

    ‘Fly excessive my angel’: 12-year-old lady dies by suicide amid bullying allegations

    February 7, 20261 Views

    Lenovo’s Qira is a Guess on Ambient, Cross-device AI—and on a New Type of Working System

    January 30, 20261 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Latest Reviews

    Subscribe to Updates

    Get the latest tech news from FooBar about tech, design and biz.

    Demo
    Most Popular

    Oatly loses ‘milk’ branding battle in UK Supreme Courtroom

    February 12, 20261 Views

    ‘Fly excessive my angel’: 12-year-old lady dies by suicide amid bullying allegations

    February 7, 20261 Views

    Lenovo’s Qira is a Guess on Ambient, Cross-device AI—and on a New Type of Working System

    January 30, 20261 Views
    Our Picks

    Banks Ought to Embrace Stablecoin Yield in CLARITY Act: White Home Adviser

    February 14, 2026

    Lecturers Jobs 2026 in Opal Crown College Quetta 2026 Job Commercial Pakistan

    February 14, 2026

    Hatsune Miku Honkai: Star Rail Artwork Shared Forward of 4.0

    February 14, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Facebook X (Twitter) Instagram Pinterest
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions
    • Advertise
    • Disclaimer
    © 2026 TheNews92.com. All Rights Reserved. Unauthorized reproduction or redistribution of content is strictly prohibited.

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