Setup
This guide walks you through setting up and making your first prediction with KumoRFM.
Authentication
Before using KumoRFM, you need to authenticate. There are several ways to do this:
Option 1: API Key
Option 2: OAuth2 Browser Login
Option 3: Google Colab
In Google Colab, authenticate() automatically detects the environment and provides a widget-based login flow.
Option 4: Environment Variables
Set the KUMO_API_KEY and optionally RFM_API_URL environment variables before running your script:
Then simply call:
Option 5: Snowflake Native App
When running inside a Snowflake notebook with KumoRFM deployed as a Snowflake Native App:
End-to-End Example
Here is a complete example using local pandas DataFrames to predict customer churn:
The result is a pandas DataFrame containing the prediction for each entity.
Using Other Data Sources
KumoRFM supports multiple data backends beyond pandas DataFrames:
See Data Requirements for full details on each data connector.
Next Steps
- Make Predictions — Learn the Predictive Query Language (PQL)
- Prediction Types — Explore all supported prediction types
- Filters and Operators — Filter and refine your queries
- Evaluation — Evaluate prediction quality
- Configuration — Configure run modes, explainability, and batch prediction
- Data Requirements — Data preparation and connectors
- Coding Agent Quick Start — Get started with the Kumo Coding Agent