Before a model is trained, someone has to find the column that is 60% empty, the identifier that leaked into the features and the two columns that say the same thing. InsightMLFlow's data agent and feature agent do that first pass. This article lists what they compute, so you know which parts are statistics and which are suggestions.

The data agent
The data agent reads a dataset (CSV or similar) from OCI Object Storage into a dataframe and builds a profile entirely with pandas and NumPy:
- Schema and statistics for every column: type,
describe()statistics and most frequent values. - Distributions as histograms with automatic binning.
- Correlations as a Pearson correlation matrix of the numeric columns.
- Quality issues, each with a severity, using fixed thresholds:
| Check | Warning | Critical |
|---|---|---|
| Missing values in a column | above 5% | above 50% |
| Duplicate rows | below 10% of rows | 10% or more |
| Outliers (beyond 1.5 × the interquartile range) | below 5% of values | 5% or more |
| High cardinality | more than 50 distinct values and over half the rows unique | |
| Constant column | a single value |
The profile is stored, so later agents (and people) refer to it by id. On top of it the language model writes a plain-language summary and recommendations, Python for exploratory analysis, suggestions for fixing the quality issues, and answers to questions about the data. Without a model, you still get the full profile and issue list.
The feature agent
The feature agent takes a dataset and a target column and answers three questions.
Which features carry information about the target?
It uses mutual information from scikit-learn: classification if the target is categorical or has 20 or fewer distinct values, regression otherwise, with a fixed random seed so the ranking is repeatable. Mutual information picks up non-linear relationships that a correlation would miss. If scikit-learn is unavailable it falls back to absolute correlation.
Which features are redundant?
It computes the variance inflation factor (VIF) of each numeric feature, by regressing it on the others (VIF = 1 / (1 − R²)), and lists pairs of features whose absolute correlation is above 0.9. High VIF means a feature is largely explained by the others, which makes coefficients unstable in linear models.
What could be engineered?
Suggestions for new features (interactions, polynomial terms, ratios, binning and so on) come from the language model, each with a name, a type, the pandas code to create it and the reasoning. They are proposals to test, not features to adopt.
What the numbers cannot tell you
A profile and a feature ranking describe the data you have. They do not tell you whether a feature will be available at prediction time (a common source of leakage), whether a column is allowed to be used (protected characteristics, for example), or whether the training period represents the period you will predict. Those are questions for the team and, where relevant, for governance. Keep the answers with the profile, so the next person sees why a high-ranking feature was dropped.
How to use the two together
- Profile the raw dataset and fix critical quality issues first; a feature ranking on a column that is half empty is not worth much.
- Run the feature analysis against your target and drop or combine features with very high VIF or near-duplicate pairs.
- Treat the bottom of the mutual-information ranking as candidates to drop, and check them with domain knowledge before you do.
- Try engineered features one at a time in tracked experiments, so each one has to earn its place.
A worked example: reading a profile
Take a made-up customer table of 200,000 rows. The data agent's profile might report:
| Issue and measurement | Severity (fixed thresholds) | Likely action |
|---|---|---|
last_login missing in 7% of rows | Warning (above 5%) | Check whether missing means “never logged in”; if so, encode it |
referral_code missing in 62% of rows | Critical (above 50%) | Drop, or turn into a has-referral flag |
| Duplicate rows: 1.2% of rows | Warning (under 10%) | Find the join that duplicated them before deleting |
customer_id: every value distinct | High cardinality | Exclude from features; it is an identifier |
country: one value | Constant column | Drop: it cannot inform the model |
The severities come from code; the “likely action” column is the kind of reading the language model adds and the team decides. The same rules applied to a different table give different actions: a 7% missing rate in a medical measurement may need imputation and a note in the model's documentation, not an encoding.
Reading the feature analysis
- Mutual information has no fixed scale. Compare features with each other within one analysis; do not compare a score from one dataset with a score from another.
- A high VIF is a property of the set. Removing one of two near-duplicates usually brings the other's VIF down too, so re-run the analysis after each removal rather than dropping everything above a threshold at once.
- Tree models care less. Multicollinearity mainly destabilises linear and logistic coefficients. For gradient-boosted trees, redundancy is more about interpretability and training time than accuracy.
- The 20-value rule decides the task. A numeric target with 20 or fewer distinct values is treated as classification. If your target is a count with few values that you mean as regression, keep that in mind when reading the ranking.
Questions
How large a dataset can the data agent profile?
The profile is computed in memory with pandas on the API server, so the practical limit is that server's memory. For a very large table, profile a representative sample and say so with the profile.
Does the language model see our raw data?
It sees what the agent sends for the narrative: the profile's statistics and issues, and your question. Treat column names and frequent values as data that may leave your environment, and choose the model provider accordingly.