Close Menu
    Trending
    • How This Entrepreneur Built a Bay Area Empire — One Hustle at a Time
    • How Deep Learning Is Reshaping Hedge Funds
    • Boost Team Productivity and Security With Windows 11 Pro, Now $15 for Life
    • 10 Common SQL Patterns That Show Up in FAANG Interviews | by Rohan Dutt | Aug, 2025
    • This Mac and Microsoft Bundle Pays for Itself in Productivity
    • Candy AI NSFW AI Video Generator: My Unfiltered Thoughts
    • Anaconda : l’outil indispensable pour apprendre la data science sereinement | by Wisdom Koudama | Aug, 2025
    • Automating Visual Content: How to Make Image Creation Effortless with APIs
    AIBS News
    • Home
    • Artificial Intelligence
    • Machine Learning
    • AI Technology
    • Data Science
    • More
      • Technology
      • Business
    AIBS News
    Home»Machine Learning»Crash Course on Feast Feature Store for Real-Time Loan Approval Prediction | by Tanish Kandivlikar | Jul, 2025
    Machine Learning

    Crash Course on Feast Feature Store for Real-Time Loan Approval Prediction | by Tanish Kandivlikar | Jul, 2025

    Team_AIBS NewsBy Team_AIBS NewsJuly 15, 2025No Comments2 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Feast is designed to handle and serve options for machine studying fashions. Within the mortgage approval challenge, the characteristic retailer handles historic and real-time information for mortgage candidates. Listed here are the important thing parts outlined within the challenge’s feature_repo/ listing:

    Entities are the first keys that uniquely establish information in your information. Within the challenge:

    • zipcode: An Entity with ValueType.INT64, representing a zipcode for location-based options (e.g., metropolis, inhabitants).
    zipcode = Entity(title="zipcode", value_type=ValueType.INT64)
    • dob_ssn: A composite key (ValueType.STRING) combining date of beginning and the final 4 digits of a social safety quantity for credit score historical past options.
    dob_ssn = Entity(
    title="dob_ssn",
    value_type=ValueType.STRING,
    description="Date of beginning and final 4 digits of social safety quantity",
    )

    Knowledge sources outline the place uncooked characteristic information is saved. The challenge makes use of FileSource with Parquet information:

    • zipcode_source: Factors to information/zipcode_table.parquet for location-based options like metropolis, state, and inhabitants.
    zipcode_source = FileSource(
    title="Zipcode supply",
    path="information/zipcode_table.parquet",
    file_format=ParquetFormat(),
    timestamp_field="event_timestamp",
    created_timestamp_column="created_timestamp",
    )
    • credit_history_source: Factors to information/credit_history.parquet for credit-related options like missed funds and bankruptcies.
    credit_history_source = FileSource(
    title="Credit score historical past",
    path="information/credit_history.parquet",
    file_format=ParquetFormat(),
    timestamp_field="event_timestamp",
    created_timestamp_column="created_timestamp",
    )

    Characteristic views group options related to an entity and specify their information supply and TTL (time-to-live). The challenge defines:

    • zipcode_features: Contains options like metropolis, state, tax_returns_filed, and inhabitants tied to the zipcodeentity, with a 10-year TTL.
    zipcode_features = FeatureView(
    title="zipcode_features",
    entities=[zipcode],
    ttl=timedelta(days=3650),
    schema=[
    Field(name="city", dtype=String),
    Field(name="state", dtype=String),
    Field(name="location_type", dtype=String),
    Field(name="tax_returns_filed", dtype=Int64),
    Field(name="population", dtype=Int64),
    Field(name="total_wages", dtype=Int64),
    ],
    supply=zipcode_source,
    )
    • credit_history: Contains credit-related options like credit_card_due, mortgage_due, and bankruptcies tied to the dob_ssn entity, with a 90-day TTL.
    credit_history = FeatureView(
    title="credit_history",
    entities=[dob_ssn],
    ttl=timedelta(days=90),
    schema=[
    Field(name="credit_card_due", dtype=Int64),
    Field(name="mortgage_due", dtype=Int64),
    # ... other fields
    Field(name="bankruptcies", dtype=Int64),
    ],
    supply=credit_history_source,
    )

    On-demand characteristic views compute options at prediction time. The challenge defines total_debt_calc to calculate the entire debt by summing credit-related dues and the requested mortgage quantity.

    @on_demand_feature_view(
    sources=[credit_history, input_request],
    schema=[Field(name='total_debt_due', dtype=Float64)],
    mode="pandas",
    )
    def total_debt_calc(features_df: pd.DataFrame) -> pd.DataFrame:
    df = pd.DataFrame()
    df['total_debt_due'] = (
    features_df['credit_card_due'] + refreshments_df['mortgage_due'] +
    features_df['student_loan_due'] + features_df['vehicle_loan_due'] +
    features_df['loan_amnt']
    ).astype(float)
    return df

    The input_request is a RequestSource for user-provided inputs like loan_amnt:

    input_request = RequestSource(
    title="application_data",
    schema=[Field(name='loan_amnt', dtype=Int64)]
    )

    The feature_store.yaml configures the infrastructure:

    • Registry: PostgreSQL (postgresql+psycopg://postgres@localhost:5432/feast) shops metadata about entities and have views.
    • On-line Retailer: Redis (localhost:6379) serves real-time options for inference.
    • Offline Retailer: DuckDB handles historic information for coaching.
    • Supplier: Set to native for native improvement.
    challenge: credit_scoring_local
    registry:
    registry_type: sql
    path: postgresql+psycopg://postgres@localhost:5432/feast
    cache_ttl_seconds: 60
    supplier: native
    online_store:
    kind: redis
    redis_type: redis
    connection_string: "localhost:6379"
    offline_store:
    kind: duckdb



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleWhy Data Privacy Without Context Will No Longer Work in 2026
    Next Article Deploy a Streamlit App to AWS
    Team_AIBS News
    • Website

    Related Posts

    Machine Learning

    How Deep Learning Is Reshaping Hedge Funds

    August 2, 2025
    Machine Learning

    10 Common SQL Patterns That Show Up in FAANG Interviews | by Rohan Dutt | Aug, 2025

    August 2, 2025
    Machine Learning

    Anaconda : l’outil indispensable pour apprendre la data science sereinement | by Wisdom Koudama | Aug, 2025

    August 2, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    How This Entrepreneur Built a Bay Area Empire — One Hustle at a Time

    August 2, 2025

    I Tried Buying a Car Through Amazon: Here Are the Pros, Cons

    December 10, 2024

    Amazon and eBay to pay ‘fair share’ for e-waste recycling

    December 10, 2024

    Artificial Intelligence Concerns & Predictions For 2025

    December 10, 2024

    Barbara Corcoran: Entrepreneurs Must ‘Embrace Change’

    December 10, 2024
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    Most Popular

    Feature Engineering for Predicting Hospitalization for Inpatient Level of Care: A Guide to Building ML Models | by Venkateswara Rao Davuluri | Dec, 2024

    December 16, 2024

    The Marketing Mistake I Turned Into $1 Million in New Business

    January 24, 2025

    From Data to Stories: Code Agents for KPI Narratives

    May 29, 2025
    Our Picks

    How This Entrepreneur Built a Bay Area Empire — One Hustle at a Time

    August 2, 2025

    How Deep Learning Is Reshaping Hedge Funds

    August 2, 2025

    Boost Team Productivity and Security With Windows 11 Pro, Now $15 for Life

    August 2, 2025
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2024 Aibsnews.comAll Rights Reserved.

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