← All nodes
Analytics

Score Model

Applies a model made by Linear Regression, Logistic Regression or Decision Tree to new rows, writing the prediction (or probability, or class) in a new column.

When to use it

Use it to score fresh data with a model fitted earlier — this month's customers with last month's churn model.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Model (JSON)textarea—{"type":"linear","target":"Revenue","intercept":120,"coefficients":{"Spend":3.5}}
Or read the model from columnselect—Optional: a Model column
Feature columnsselect—Default: the columns the model names
Outputselect—score
Score column nametext—Default: Score

Example

Predict revenue for new accounts

  • Model (JSON)={"type":"linear","target":"Revenue","features":["Spend"],"intercept":5,"coefficients":{"Spend":2}}
New accounts
CustomerSpend
New Co50
Next Ltd70
Scored
CustomerSpendScore
New Co50105
Next Ltd70145

Worth knowing

  • Models are JSON, not stored artifacts: paste one from a model node's notes, or pick the Model column it added.
  • The model's feature names are used as column names; pick Feature columns (one per feature, in order) when yours are named differently.
  • Class output gives 1/0 for logistic models at the model's threshold, and the class for trees.

Others in Analytics