Skip to main content
This section outlines the best practices for preparing high-quality datasets for KumoRFM, incorporating key insights from Table and Graph design patterns.

Table Structure and Entity Design

  1. One entity or event per table:
  2. Single time column per table:
  3. Handle many-to-many relationships with junction tables:

Data Preparation

  1. Modify dtypes at `pandas.DataFrame` level before creating tables:
  2. Use consistent naming conventions:
  3. Ensure unique primary keys:

Semantic Type Assignment

  1. Choose meaningful semantic types:

Graph Construction

  1. Design for meaningful relationships:
  2. Ensure prediction-ready structure:

Common Data Modeling Patterns

Entity-Event Pattern
Hierarchical Entities
Junction Table for Many-to-Many

Summary

Following these best practices will help ensure your KumoRFM datasets are well-structured, validated, and optimized for performance: Table Design:
  • One entity or event per table
  • Single time column per table
  • Unique primary keys with consistent naming
  • Junction tables for many-to-many relationships
Data Preparation:
  • Set proper pandas dtypes before creating tables
  • Use meaningful semantic types (ID, categorical, text, numerical)
  • Validate metadata and semantic types before proceeding
Graph Structure:
  • Design meaningful entity relationships
  • Consider PQL query requirements in your structure
  • Ensure single connected component
  • Test with validation workflow
These patterns will help you create robust, queryable datasets that work effectively with KumoRFM’s predictive capabilities.