Request a demo
All articles How it works

The data and feature agents: what they compute, and what they leave to you

Profiling and feature analysis are where most model projects lose days. Exactly which checks InsightMLFlow's data and feature agents run, with their thresholds, and where the language model comes in.

November 7, 2026 · 5 min read

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.

Data Agent quality issues, AI summary and ranked recommendations for a made-up churn dataset.
Quality issues, the summary and ranked recommendations from the Data Agent. Demo data.

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:
CheckWarningCritical
Missing values in a columnabove 5%above 50%
Duplicate rowsbelow 10% of rows10% or more
Outliers (beyond 1.5 × the interquartile range)below 5% of values5% or more
High cardinalitymore than 50 distinct values and over half the rows unique
Constant columna 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.

Thresholds for VIF are a judgement. The agent reports VIF values; the common rules of thumb (above 5 moderate, above 10 severe) are offered in the language model's explanation, not enforced in code. Decide what you act on for your model type.

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

  1. Profile the raw dataset and fix critical quality issues first; a feature ranking on a column that is half empty is not worth much.
  2. Run the feature analysis against your target and drop or combine features with very high VIF or near-duplicate pairs.
  3. Treat the bottom of the mutual-information ranking as candidates to drop, and check them with domain knowledge before you do.
  4. Try engineered features one at a time in tracked experiments, so each one has to earn its place.
Current limits. The data agent reads datasets from OCI Object Storage. The feature agent's loader is being aligned with the same storage provider; check with us before planning a workflow around it.

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 measurementSeverity (fixed thresholds)Likely action
last_login missing in 7% of rowsWarning (above 5%)Check whether missing means “never logged in”; if so, encode it
referral_code missing in 62% of rowsCritical (above 50%)Drop, or turn into a has-referral flag
Duplicate rows: 1.2% of rowsWarning (under 10%)Find the join that duplicated them before deleting
customer_id: every value distinctHigh cardinalityExclude from features; it is an identifier
country: one valueConstant columnDrop: 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.

Run it on one of your own models

Bring a dataset and a model you already train. We profile it, track a run and measure drift with you in your own cloud.

Request a demo