BRAINIAC Predictive & Customer Analytics is an MCP server published by software.brainiac, hosted at www.brainiac.software. When last checked on 2026-11-21 it was working: it answers and lists its tools. It declares 15 tools, including predictive-analytics_kmeans-cluster, predictive-analytics_dbscan-cluster, predictive-analytics_pca, predictive-analytics_decision-tree-train, predictive-analytics_random-forest-importance.
Paid Predictive & Customer Analytics API via x402. Unpaid tool calls return 402.
1,073 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Lloyd k-means with k-means++ seeding, optional standardisation, nInit restarts, silhouette and inertia for a k range, and stable label renumbering when scoring customers or a predictive model. Call with columns and rows; optional k, kRange, standardize, seed, nInit, maxIter. Returns k, labels, centroids, inertia, silhouette, kSelection, rowsUsed, droppedRows. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, columns, rows, kRange, standardize, seed, nInit, maxIter, labels, centroids, inertia, silhouette, kSelection, rowsUsed, droppedRows.
| Parameter | Type | Description |
|---|---|---|
| k | integer | k, integer, from 2 to 50. Optional. |
| rows * | array | rows, array. Required. |
| seed | integer | seed, integer, from -9007199254740991 to 9007199254740991. Required. |
| nInit | integer | nInit, integer, from 1 to 50. Required. |
| kRange | array | kRange, array. Optional. |
| columns * | array | columns, array. Required. |
| maxIter | integer | maxIter, integer, from 1 to 1000. Required. |
| standardize | boolean | standardize, boolean. Required. |
{
"name": "predictive-analytics_kmeans-cluster",
"title": "K-means clustering with silhouette k-selection",
"description": "Lloyd k-means with k-means++ seeding, optional standardisation, nInit restarts, silhouette and inertia for a k range, and stable label renumbering when scoring customers or a predictive model. Call with columns and rows; optional k, kRange, standardize, seed, nInit, maxIter. Returns k, labels, centroids, inertia, silhouette, kSelection, rowsUsed, droppedRows. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, columns, rows, kRange, standardize, seed, nInit, maxIter, labels, centroids, inertia, silhouette, kSelection, rowsUsed, droppedRows.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"columns",
"rows"
],
"properties": {
"k": {
"type": "integer",
"maximum": 50,
"minimum": 2,
"description": "k, integer, from 2 to 50. Optional."
},
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
],
"description": "item, number. Required."
},
"description": "item, array. Required."
},
"description": "rows, array. Required."
},
"seed": {
"type": "integer",
"default": 42,
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "seed, integer, from -9007199254740991 to 9007199254740991. Required."
},
"nInit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "nInit, integer, from 1 to 50. Required."
},
"kRange": {
"type": "array",
"items": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
{
"type": "integer",
"maximum": 50,
"minimum": -9007199254740991
}
],
"maxItems": 2,
"minItems": 2,
"description": "kRange, array. Optional.",
"additionalItems": false
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "item, string, length 1 to 64. Required."
},
"description": "columns, array. Required."
},
"maxIter": {
"type": "integer",
"default": 300,
"maximum": 1000,
"minimum": 1,
"description": "maxIter, integer, from 1 to 1000. Required."
},
"standardize": {
"type": "boolean",
"default": true,
"description": "standardize, boolean. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"k": {
"type": "number",
"description": "k. Number."
},
"caps": {
"type": "object",
"properties": {
"maxRows": {
"type": "number",
"description": "maxRows. Number."
},
"maxColumns": {
"type": "number",
"description": "maxColumns. Number."
}
},
"description": "caps. Object.",
"additionalProperties": {}
},
"labels": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "labels. Array."
},
"inertia": {
"type": "number",
"description": "inertia. Number."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"rowsUsed": {
"type": "number",
"description": "rowsUsed. Number."
},
"centroids": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "item. Array."
},
"description": "centroids. Array."
},
"kSelection": {
"type": "array",
"items": {
"type": "object",
"properties": {
"k": {
"type": "number",
"description": "k. Number."
},
"inertia": {
"type": "number",
"description": "inertia. Number."
},
"silhouette": {
"type": "number",
"description": "silhouette. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "kSelection. Array."
},
"silhouette": {
"type": "number",
"description": "silhouette. Number."
},
"droppedRows": {
"type": "number",
"description": "droppedRows. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "K-means clustering with silhouette k-selection",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Density-based clustering with Euclidean or haversine distance, core/border/noise labelling, and an optional k-distance knee suggestion for eps when scoring customers or a predictive model. Call with columns, rows, and eps; optional minSamples, metric, kDistance. Returns labels, clusters, noise, corePoints, kDistance, rowsUsed, droppedRows, and caps. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, columns, rows, eps, minSamples, metric, kDistance, labels, clusters, noise, corePoints, rowsUsed, droppedRows, caps, DBSCAN density clustering with noise labels.
| Parameter | Type | Description |
|---|---|---|
| eps * | number | eps, number. Required. |
| rows * | array | rows, array. Required. |
| metric | string | metric, string, one of euclidean, haversine. Required. |
| columns * | array | columns, array. Required. |
| kDistance | boolean | kDistance, boolean. Required. |
| minSamples | integer | minSamples, integer, from 2 to 1000. Required. |
Centre (and optionally standardise) columns, decompose the covariance, and return eigenvalues, explained ratios, signed loadings and optional scores when scoring customers or a predictive model. Call with columns and rows; optional standardize, components, returnScores. Returns eigenvalues, explainedRatio, loadings, scores, rowsUsed, droppedRows, and caps. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, columns, rows, standardize, components, returnScores, eigenvalues, explainedRatio, loadings, scores, rowsUsed, droppedRows, caps, Principal component analysis.
| Parameter | Type | Description |
|---|---|---|
| rows * | array | rows, array. Required. |
| columns * | array | columns, array. Required. |
| components | integer | components, integer, from 1 to 100. Optional. |
| standardize | boolean | standardize, boolean. Required. |
| returnScores | boolean | returnScores, boolean. Required. |
{
"name": "predictive-analytics_pca",
"title": "Principal component analysis",
"description": "Centre (and optionally standardise) columns, decompose the covariance, and return eigenvalues, explained ratios, signed loadings and optional scores when scoring customers or a predictive model. Call with columns and rows; optional standardize, components, returnScores. Returns eigenvalues, explainedRatio, loadings, scores, rowsUsed, droppedRows, and caps. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, columns, rows, standardize, components, returnScores, eigenvalues, explainedRatio, loadings, scores, rowsUsed, droppedRows, caps, Principal component analysis.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"columns",
"rows"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
],
"description": "item, number. Required."
},
"description": "item, array. Required."
},
"description": "rows, array. Required."
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "item, string, length 1 to 64. Required."
},
"description": "columns, array. Required."
},
"components": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "components, integer, from 1 to 100. Optional."
},
"standardize": {
"type": "boolean",
"default": false,
"description": "standardize, boolean. Required."
},
"returnScores": {
"type": "boolean",
"default": true,
"description": "returnScores, boolean. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"caps": {
"type": "object",
"properties": {
"maxRows": {
"type": "number",
"description": "maxRows. Number."
},
"maxColumns": {
"type": "number",
"description": "maxColumns. Number."
}
},
"description": "caps. Object.",
"additionalProperties": {}
},
"scores": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "item. Array."
},
"description": "scores. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"loadings": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "item. Array."
},
"description": "loadings. Array."
},
"rowsUsed": {
"type": "number",
"description": "rowsUsed. Number."
},
"droppedRows": {
"type": "number",
"description": "droppedRows. Number."
},
"eigenvalues": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "eigenvalues. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"explainedRatio": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "explainedRatio. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Principal component analysis",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Fit a classification or regression CART tree with depth and leaf limits, readable rules, feature importance and optional predictions when scoring customers or a predictive model. Call with task, columns, rows, and target; optional maxDepth, minSamplesLeaf, predict. Returns rules, tree, featureImportance, trainAccuracy, predictions, warnings, rowsUsed, droppedRows. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, task, columns, rows, target, maxDepth, minSamplesLeaf, predict, rules, tree, featureImportance, trainAccuracy, predictions, warnings, rowsUsed.
| Parameter | Type | Description |
|---|---|---|
| rows * | array | rows, array. Required. |
| task * | string | task, string, one of classification, regression. Required. |
| target * | array | target, array. Required. |
| columns * | array | columns, array. Required. |
| predict | array | predict, array. Optional. |
| maxDepth | integer | maxDepth, integer, from 1 to 20. Required. |
| minSamplesLeaf | integer | minSamplesLeaf, integer, from 1 to 1000. Required. |
Train a small seeded random forest, report out-of-bag accuracy or R², and estimate permutation feature importance with Fisher-Yates shuffles when scoring customers or a predictive model. Call with task, columns, rows, and target; optional trees, maxFeatures, maxDepth, seed, permutationRepeats, minSamplesLeaf. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, task, columns, rows, target, trees, maxFeatures, maxDepth, seed, permutationRepeats, minSamplesLeaf, oobScore, importance, rowsUsed, droppedRows.
| Parameter | Type | Description |
|---|---|---|
| rows * | array | rows, array. Required. |
| seed | integer | seed, integer, from -9007199254740991 to 9007199254740991. Required. |
| task * | string | task, string, one of classification, regression. Required. |
| trees | integer | trees, integer, from 10 to 500. Required. |
| target * | array | target, array. Required. |
| columns * | array | columns, array. Required. |
| maxDepth | any | maxDepth, value. Required. |
Estimate group Kaplan-Meier curves with Greenwood log-log confidence intervals, median survival, survival at chosen times, and a multi-group log-rank test when scoring customers or a predictive model. Call with subjects; optional confidence, at. Returns groups and logRank (groups includes group, median, survivalAt, curve). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, subjects, confidence, groups, logRank, Kaplan-Meier survival curves and log-rank test, kaplan meier survival, Predictive & Customer Analytics.
| Parameter | Type | Description |
|---|---|---|
| at | array | at, array. Optional. |
| subjects * | array | subjects, array. Required. |
| confidence | number | confidence, number. Required. |
{
"name": "predictive-analytics_kaplan-meier-survival",
"title": "Kaplan-Meier survival curves and log-rank test",
"description": "Estimate group Kaplan-Meier curves with Greenwood log-log confidence intervals, median survival, survival at chosen times, and a multi-group log-rank test when scoring customers or a predictive model. Call with subjects; optional confidence, at. Returns groups and logRank (groups includes group, median, survivalAt, curve). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, subjects, confidence, groups, logRank, Kaplan-Meier survival curves and log-rank test, kaplan meier survival, Predictive & Customer Analytics.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"subjects"
],
"properties": {
"at": {
"type": "array",
"items": {
"type": "number",
"description": "item, number. Required.",
"exclusiveMinimum": 0
},
"description": "at, array. Optional."
},
"subjects": {
"type": "array",
"items": {
"type": "object",
"required": [
"time",
"event"
],
"properties": {
"time": {
"type": "number",
"description": "time, number. Required.",
"exclusiveMinimum": 0
},
"event": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
],
"description": "event, value. Required."
},
"group": {
"type": "string",
"default": "all",
"maxLength": 64,
"minLength": 1,
"description": "group, string, length 1 to 64. Required."
}
},
"description": "item, object. Required."
},
"description": "subjects, array. Required."
},
"confidence": {
"type": "number",
"default": 0.95,
"description": "confidence, number. Required.",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"curve": {
"type": "array",
"items": {
"type": "object",
"properties": {
"S": {
"type": "number",
"description": "S. Number."
},
"t": {
"type": "number",
"description": "t. Number."
},
"ciLow": {
"type": "number",
"description": "ciLow. Number."
},
"atRisk": {
"type": "number",
"description": "atRisk. Number."
},
"ciHigh": {
"type": "number",
"description": "ciHigh. Number."
},
"events": {
"type": "number",
"description": "events. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "curve. Array."
},
"group": {
"type": "string",
"description": "group. String."
},
"median": {
"type": "number",
"description": "median. Number."
},
"survivalAt": {
"type": "array",
"items": {
"type": "object",
"properties": {
"S": {
"type": "number",
"description": "S. Number."
},
"t": {
"type": "number",
"description": "t. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "survivalAt. Array."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "groups. Array."
},
"logRank": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "p. Number."
},
"df": {
"type": "number",
"description": "df. Number."
},
"chiSquare": {
"type": "number",
"description": "chiSquare. Number."
}
},
"description": "logRank. Object.",
"additionalProperties": {}
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Kaplan-Meier survival curves and log-rank test",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Maximise the Cox partial likelihood with Efron or Breslow ties, return hazard ratios with SEs, concordance, and a rank-time proportional-hazards check when scoring customers or a predictive model. Call with subjects; optional ties, confidence. Returns coefficients, logLikelihood, concordance, phTest, and converged (coefficients includes name, beta, se, hazardRatio, z, p). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, subjects, ties, confidence, coefficients, logLikelihood, concordance, phTest, converged, Cox proportional hazards regression, cox regression.
| Parameter | Type | Description |
|---|---|---|
| ties | string | ties, string, one of efron, breslow. Required. |
| subjects * | array | subjects, array. Required. |
| confidence | number | confidence, number. Required. |
{
"name": "predictive-analytics_cox-regression",
"title": "Cox proportional hazards regression",
"description": "Maximise the Cox partial likelihood with Efron or Breslow ties, return hazard ratios with SEs, concordance, and a rank-time proportional-hazards check when scoring customers or a predictive model. Call with subjects; optional ties, confidence. Returns coefficients, logLikelihood, concordance, phTest, and converged (coefficients includes name, beta, se, hazardRatio, z, p). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, subjects, ties, confidence, coefficients, logLikelihood, concordance, phTest, converged, Cox proportional hazards regression, cox regression.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"subjects"
],
"properties": {
"ties": {
"enum": [
"efron",
"breslow"
],
"type": "string",
"default": "efron",
"description": "ties, string, one of efron, breslow. Required."
},
"subjects": {
"type": "array",
"items": {
"type": "object",
"required": [
"time",
"event",
"covariates"
],
"properties": {
"time": {
"type": "number",
"description": "time, number. Required.",
"exclusiveMinimum": 0
},
"event": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
],
"description": "event, value. Required."
},
"covariates": {
"type": "object",
"description": "covariates, object. Required.",
"propertyNames": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"additionalProperties": {
"type": "number"
}
}
},
"description": "item, object. Required."
},
"description": "subjects, array. Required."
},
"confidence": {
"type": "number",
"default": 0.95,
"description": "confidence, number. Required.",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"phTest": {
"type": "array",
"items": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "p. Number."
},
"name": {
"type": "string",
"description": "name. String."
},
"chiSquare": {
"type": "number",
"description": "chiSquare. Number."
},
"timeTransform": {
"type": "string",
"description": "timeTransform. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "phTest. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"converged": {
"type": "boolean",
"description": "converged. Boolean."
},
"concordance": {
"type": "number",
"description": "concordance. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"coefficients": {
"type": "array",
"items": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "p. Number."
},
"z": {
"type": "number",
"description": "z. Number."
},
"se": {
"type": "number",
"description": "se. Number."
},
"beta": {
"type": "number",
"description": "beta. Number."
},
"name": {
"type": "string",
"description": "name. String."
},
"hazardRatio": {
"type": "number",
"description": "hazardRatio. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "coefficients. Array."
},
"logLikelihood": {
"type": "number",
"description": "logLikelihood. Number."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Cox proportional hazards regression",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Build day/week/month cohort retention in classic or rolling mode from signup and activity dates, with partial-period flags and a size-weighted curve when scoring customers or a predictive model. Call with events and asOf; optional period, mode, timezone. Returns cohorts and weightedCurve (cohorts includes cohort, size, retention, partial). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, events, asOf, period, mode, timezone, cohorts, weightedCurve, Cohort retention matrix and weighted curve, cohort retention.
| Parameter | Type | Description |
|---|---|---|
| asOf * | string | asOf, string. Required. |
| mode | string | mode, string, one of classic, rolling. Required. |
| events * | array | events, array. Required. |
| period | string | period, string, one of day, week, month. Required. |
| timezone | string | timezone, string, length 1 to 64. Required. |
{
"name": "predictive-analytics_cohort-retention",
"title": "Cohort retention matrix and weighted curve",
"description": "Build day/week/month cohort retention in classic or rolling mode from signup and activity dates, with partial-period flags and a size-weighted curve when scoring customers or a predictive model. Call with events and asOf; optional period, mode, timezone. Returns cohorts and weightedCurve (cohorts includes cohort, size, retention, partial). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, events, asOf, period, mode, timezone, cohorts, weightedCurve, Cohort retention matrix and weighted curve, cohort retention.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"events",
"asOf"
],
"properties": {
"asOf": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "asOf, string. Required."
},
"mode": {
"enum": [
"classic",
"rolling"
],
"type": "string",
"default": "classic",
"description": "mode, string, one of classic, rolling. Required."
},
"events": {
"type": "array",
"items": {
"type": "object",
"required": [
"userId",
"signup",
"activity"
],
"properties": {
"signup": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "signup, string. Required."
},
"userId": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "userId, string, length 1 to 128. Required."
},
"activity": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "item, string. Required."
},
"description": "activity, array. Required."
}
},
"description": "item, object. Required."
},
"description": "events, array. Required."
},
"period": {
"enum": [
"day",
"week",
"month"
],
"type": "string",
"default": "month",
"description": "period, string, one of day, week, month. Required."
},
"timezone": {
"type": "string",
"default": "UTC",
"maxLength": 64,
"minLength": 1,
"description": "timezone, string, length 1 to 64. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"cohorts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"size": {
"type": "number",
"description": "size. Number."
},
"cohort": {
"type": "string",
"description": "cohort. String."
},
"partial": {
"type": "boolean",
"description": "partial. Boolean."
},
"retention": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "retention. Array."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "cohorts. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"weightedCurve": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "weightedCurve. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Cohort retention matrix and weighted curve",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Score customers 1–bins on recency, frequency and monetary value with average ranks for ties, then map scores to Champions/Loyal/New/At risk/Hibernating or a custom rule list when scoring customers or a predictive model. Call with optional customers, transactions, asOf, bins, segmentMap. Returns customers and segments (customers includes id, r, f, m, rfm, segment). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, customers, transactions, asOf, bins, segmentMap, segments, RFM scoring and named customer segments, rfm segment.
| Parameter | Type | Description |
|---|---|---|
| asOf | string | asOf, string. Optional. |
| bins | integer | bins, integer, from 3 to 10. Required. |
| customers | array | customers, array. Optional. |
| segmentMap | any | segmentMap, value. Required. |
| transactions | array | transactions, array. Optional. |
{
"name": "predictive-analytics_rfm-segment",
"title": "RFM scoring and named customer segments",
"description": "Score customers 1–bins on recency, frequency and monetary value with average ranks for ties, then map scores to Champions/Loyal/New/At risk/Hibernating or a custom rule list when scoring customers or a predictive model. Call with optional customers, transactions, asOf, bins, segmentMap. Returns customers and segments (customers includes id, r, f, m, rfm, segment). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, customers, transactions, asOf, bins, segmentMap, segments, RFM scoring and named customer segments, rfm segment.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"asOf": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "asOf, string. Optional."
},
"bins": {
"type": "integer",
"default": 5,
"maximum": 10,
"minimum": 3,
"description": "bins, integer, from 3 to 10. Required."
},
"customers": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"recencyDays",
"frequency",
"monetary"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"monetary": {
"type": "number",
"minimum": 0,
"description": "monetary, number, from 0 to any. Required."
},
"frequency": {
"type": "number",
"description": "frequency, number. Required.",
"exclusiveMinimum": 0
},
"recencyDays": {
"type": "number",
"minimum": 0,
"description": "recencyDays, number, from 0 to any. Required."
}
},
"description": "item, object. Required."
},
"description": "customers, array. Optional."
},
"segmentMap": {
"anyOf": [
{
"type": "string",
"const": "default"
},
{
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"r",
"f"
],
"properties": {
"f": {
"type": "array",
"items": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
{
"type": "integer",
"maximum": 10,
"minimum": -9007199254740991
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"m": {
"type": "array",
"items": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
{
"type": "integer",
"maximum": 10,
"minimum": -9007199254740991
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"r": {
"type": "array",
"items": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
{
"type": "integer",
"maximum": 10,
"minimum": -9007199254740991
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
}
}
},
"maxItems": 100,
"minItems": 1
}
],
"default": "default",
"description": "segmentMap, value. Required."
},
"transactions": {
"type": "array",
"items": {
"type": "object",
"required": [
"customerId",
"date",
"amount"
],
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "date, string. Required."
},
"amount": {
"type": "number",
"description": "amount, number. Required."
},
"customerId": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "customerId, string, length 1 to 128. Required."
}
},
"description": "item, object. Required."
},
"description": "transactions, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"segments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "name. String."
},
"count": {
"type": "number",
"description": "count. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "segments. Array."
},
"customers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"f": {
"type": "number",
"description": "f. Number."
},
"m": {
"type": "number",
"description": "m. Number."
},
"r": {
"type": "number",
"description": "r. Number."
},
"id": {
"type": "string",
"description": "id. String."
},
"rfm": {
"type": "string",
"description": "rfm. String."
},
"segment": {
"type": "string",
"description": "segment. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "customers. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "RFM scoring and named customer segments",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Fit BG/NBD purchase frequency and Gamma-Gamma spend models, then return P(alive), expected purchases over a horizon, expected value and undiscounted CLV per customer when scoring customers or a predictive model. Call with customers; optional horizon, margin, minRepeatCustomers. Returns bgnbd, gammaGamma, and customers (bgnbd includes r, alpha, a, b, logLikelihood). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, customers, horizon, margin, minRepeatCustomers, bgnbd, gammaGamma, BG/NBD and Gamma-Gamma customer lifetime value, clv bg nbd.
| Parameter | Type | Description |
|---|---|---|
| margin | number | margin, number. Required. |
| horizon | number | horizon, number. Required. |
| customers * | array | customers, array. Required. |
| minRepeatCustomers | integer | minRepeatCustomers, integer, from 1 to 100000. Required. |
{
"name": "predictive-analytics_clv-bg-nbd",
"title": "BG/NBD and Gamma-Gamma customer lifetime value",
"description": "Fit BG/NBD purchase frequency and Gamma-Gamma spend models, then return P(alive), expected purchases over a horizon, expected value and undiscounted CLV per customer when scoring customers or a predictive model. Call with customers; optional horizon, margin, minRepeatCustomers. Returns bgnbd, gammaGamma, and customers (bgnbd includes r, alpha, a, b, logLikelihood). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, customers, horizon, margin, minRepeatCustomers, bgnbd, gammaGamma, BG/NBD and Gamma-Gamma customer lifetime value, clv bg nbd.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"customers"
],
"properties": {
"margin": {
"type": "number",
"default": 1,
"description": "margin, number. Required.",
"exclusiveMinimum": 0
},
"horizon": {
"type": "number",
"default": 10,
"description": "horizon, number. Required.",
"exclusiveMinimum": 0
},
"customers": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"frequency",
"recency",
"T"
],
"properties": {
"T": {
"type": "number",
"description": "T, number. Required.",
"exclusiveMinimum": 0
},
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"recency": {
"type": "number",
"minimum": 0,
"description": "recency, number, from 0 to any. Required."
},
"frequency": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "frequency, integer, from 0 to 9007199254740991. Required."
},
"monetaryValue": {
"type": "number",
"description": "monetaryValue, number. Optional.",
"exclusiveMinimum": 0
}
},
"description": "item, object. Required."
},
"description": "customers, array. Required."
},
"minRepeatCustomers": {
"type": "integer",
"default": 10,
"maximum": 100000,
"minimum": 1,
"description": "minRepeatCustomers, integer, from 1 to 100000. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"bgnbd": {
"type": "object",
"properties": {
"a": {
"type": "number",
"description": "a. Number."
},
"b": {
"type": "number",
"description": "b. Number."
},
"r": {
"type": "number",
"description": "r. Number."
},
"alpha": {
"type": "number",
"description": "alpha. Number."
},
"logLikelihood": {
"type": "number",
"description": "logLikelihood. Number."
}
},
"description": "bgnbd. Object.",
"additionalProperties": {}
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"customers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"clv": {
"type": "null",
"description": "clv. Null."
},
"pAlive": {
"type": "number",
"description": "pAlive. Number."
},
"expectedValue": {
"type": "null",
"description": "expectedValue. Null."
},
"expectedPurchases": {
"type": "number",
"description": "expectedPurchases. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "customers. Array."
},
"gammaGamma": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "p. Number."
},
"q": {
"type": "number",
"description": "q. Number."
},
"v": {
"type": "number",
"description": "v. Number."
}
},
"description": "gammaGamma. Object.",
"additionalProperties": {}
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "BG/NBD and Gamma-Gamma customer lifetime value",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Mine frequent itemsets and association rules with support, confidence, lift, leverage and conviction from caller baskets when scoring customers or a predictive model. Call with baskets; optional minSupport, minConfidence, maxItemsetSize, maxRules. Returns rules (rules includes antecedent, consequent, support, confidence, lift, leverage, conviction). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, baskets, minSupport, minConfidence, maxItemsetSize, maxRules, rules, Market-basket association rules, market basket rules.
| Parameter | Type | Description |
|---|---|---|
| baskets * | array | baskets, array. Required. |
| maxRules | integer | maxRules, integer, from 1 to 100000. Required. |
| minSupport | number | minSupport, number, from any to 1. Required. |
| minConfidence | number | minConfidence, number, from any to 1. Required. |
| maxItemsetSize | integer | maxItemsetSize, integer, from 2 to 10. Required. |
{
"name": "predictive-analytics_market-basket-rules",
"title": "Market-basket association rules",
"description": "Mine frequent itemsets and association rules with support, confidence, lift, leverage and conviction from caller baskets when scoring customers or a predictive model. Call with baskets; optional minSupport, minConfidence, maxItemsetSize, maxRules. Returns rules (rules includes antecedent, consequent, support, confidence, lift, leverage, conviction). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, baskets, minSupport, minConfidence, maxItemsetSize, maxRules, rules, Market-basket association rules, market basket rules.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"baskets"
],
"properties": {
"baskets": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "item, string, length 1 to 128. Required."
},
"description": "item, array. Required."
},
"description": "baskets, array. Required."
},
"maxRules": {
"type": "integer",
"default": 1000,
"maximum": 100000,
"minimum": 1,
"description": "maxRules, integer, from 1 to 100000. Required."
},
"minSupport": {
"type": "number",
"default": 0.01,
"maximum": 1,
"description": "minSupport, number, from any to 1. Required.",
"exclusiveMinimum": 0
},
"minConfidence": {
"type": "number",
"default": 0.5,
"maximum": 1,
"description": "minConfidence, number, from any to 1. Required.",
"exclusiveMinimum": 0
},
"maxItemsetSize": {
"type": "integer",
"default": 3,
"maximum": 10,
"minimum": 2,
"description": "maxItemsetSize, integer, from 2 to 10. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"rules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"lift": {
"type": "number",
"description": "lift. Number."
},
"support": {
"type": "number",
"description": "support. Number."
},
"leverage": {
"type": "number",
"description": "leverage. Number."
},
"antecedent": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "antecedent. Array."
},
"confidence": {
"type": "number",
"description": "confidence. Number."
},
"consequent": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "consequent. Array."
},
"conviction": {
"type": "null",
"description": "conviction. Null."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "rules. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Market-basket association rules",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Detect mean or mean-variance changepoints with PELT, BIC/AIC or custom penalties, and MAD-based noise scaling when scoring customers or a predictive model. Call with values; optional model, penalty, minSegment. Returns changepoints, segments, sigma, and penaltyValue (segments includes start, end, mean). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, values, model, penalty, minSegment, changepoints, segments, sigma, penaltyValue, PELT changepoint detection, changepoint detect.
| Parameter | Type | Description |
|---|---|---|
| model | string | model, string, one of mean, meanvar. Required. |
| values * | array | values, array. Required. |
| penalty | any | penalty, value. Required. |
| minSegment | integer | minSegment, integer, from 1 to 10000. Required. |
{
"name": "predictive-analytics_changepoint-detect",
"title": "PELT changepoint detection",
"description": "Detect mean or mean-variance changepoints with PELT, BIC/AIC or custom penalties, and MAD-based noise scaling when scoring customers or a predictive model. Call with values; optional model, penalty, minSegment. Returns changepoints, segments, sigma, and penaltyValue (segments includes start, end, mean). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, values, model, penalty, minSegment, changepoints, segments, sigma, penaltyValue, PELT changepoint detection, changepoint detect.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"values"
],
"properties": {
"model": {
"enum": [
"mean",
"meanvar"
],
"type": "string",
"default": "mean",
"description": "model, string, one of mean, meanvar. Required."
},
"values": {
"type": "array",
"items": {
"type": "number",
"description": "item, number. Required."
},
"description": "values, array. Required."
},
"penalty": {
"anyOf": [
{
"enum": [
"bic",
"aic"
],
"type": "string"
},
{
"type": "number",
"exclusiveMinimum": 0
}
],
"default": "bic",
"description": "penalty, value. Required."
},
"minSegment": {
"type": "integer",
"default": 2,
"maximum": 10000,
"minimum": 1,
"description": "minSegment, integer, from 1 to 10000. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"sigma": {
"type": "number",
"description": "sigma. Number."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"segments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"end": {
"type": "number",
"description": "end. Number."
},
"mean": {
"type": "number",
"description": "mean. Number."
},
"start": {
"type": "number",
"description": "start. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "segments. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"changepoints": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "changepoints. Array."
},
"penaltyValue": {
"type": "number",
"description": "penaltyValue. Number."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "PELT changepoint detection",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Compute ROC-AUC, average precision, Brier score, confusion at a threshold, Youden-optimal threshold and equal-width calibration bins from binary labels and scores when scoring customers or a predictive model. Call with labels and scores; optional threshold, calibrationBins. Returns rocAuc, prAuc, brier, confusion, youdenThreshold, youdenJ. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, labels, scores, threshold, calibrationBins, rocAuc, prAuc, brier, confusion, youdenThreshold, youdenJ, calibration, ROC, PR, Brier and calibration metrics, classification metrics.
| Parameter | Type | Description |
|---|---|---|
| labels * | array | labels, array. Required. |
| scores * | array | scores, array. Required. |
| threshold | number | threshold, number, from 0 to 1. Required. |
| calibrationBins | integer | calibrationBins, integer, from 2 to 100. Required. |
{
"name": "predictive-analytics_classification-metrics",
"title": "ROC, PR, Brier and calibration metrics",
"description": "Compute ROC-AUC, average precision, Brier score, confusion at a threshold, Youden-optimal threshold and equal-width calibration bins from binary labels and scores when scoring customers or a predictive model. Call with labels and scores; optional threshold, calibrationBins. Returns rocAuc, prAuc, brier, confusion, youdenThreshold, youdenJ. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, labels, scores, threshold, calibrationBins, rocAuc, prAuc, brier, confusion, youdenThreshold, youdenJ, calibration, ROC, PR, Brier and calibration metrics, classification metrics.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"labels",
"scores"
],
"properties": {
"labels": {
"type": "array",
"items": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
],
"description": "item, value. Required."
},
"description": "labels, array. Required."
},
"scores": {
"type": "array",
"items": {
"type": "number",
"description": "item, number. Required."
},
"description": "scores, array. Required."
},
"threshold": {
"type": "number",
"default": 0.5,
"maximum": 1,
"minimum": 0,
"description": "threshold, number, from 0 to 1. Required."
},
"calibrationBins": {
"type": "integer",
"default": 10,
"maximum": 100,
"minimum": 2,
"description": "calibrationBins, integer, from 2 to 100. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"brier": {
"type": "number",
"description": "brier. Number."
},
"prAuc": {
"type": "number",
"description": "prAuc. Number."
},
"rocAuc": {
"type": "number",
"description": "rocAuc. Number."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"youdenJ": {
"type": "number",
"description": "youdenJ. Number."
},
"confusion": {
"type": "object",
"properties": {
"f1": {
"type": "number",
"description": "f1. Number."
},
"fn": {
"type": "number",
"description": "fn. Number."
},
"fp": {
"type": "number",
"description": "fp. Number."
},
"tn": {
"type": "number",
"description": "tn. Number."
},
"tp": {
"type": "number",
"description": "tp. Number."
},
"recall": {
"type": "number",
"description": "recall. Number."
},
"precision": {
"type": "number",
"description": "precision. Number."
},
"threshold": {
"type": "number",
"description": "threshold. Number."
}
},
"description": "confusion. Object.",
"additionalProperties": {}
},
"calibration": {
"type": "array",
"items": {
"type": "object",
"properties": {
"n": {
"type": "number",
"description": "n. Number."
},
"bin": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "bin. Array."
},
"fraction": {
"type": "number",
"description": "fraction. Number."
},
"meanScore": {
"type": "number",
"description": "meanScore. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "calibration. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"youdenThreshold": {
"type": "number",
"description": "youdenThreshold. Number."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "ROC, PR, Brier and calibration metrics",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Pairwise Pearson/Spearman/Kendall correlations with p-values, optional partial correlations, and Holm/BH/Bonferroni adjustment across pair-method tests when scoring customers or a predictive model. Call with columns and rows; optional methods, partial, adjust. Returns pairs, partial, rowsUsed, and caps (pairs includes a, b, n, pearson, spearman, kendall). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, columns, rows, methods, partial, adjust, pairs, rowsUsed, caps, correlation analysis.
| Parameter | Type | Description |
|---|---|---|
| rows * | array | rows, array. Required. |
| adjust | string | adjust, string, one of none, holm, bh, bonferroni. Required. |
| columns * | array | columns, array. Required. |
| methods | array | methods, array. Required. |
| partial | array | partial, array. Optional. |
{
"name": "predictive-analytics_correlation-analysis",
"title": "Pearson, Spearman, Kendall and partial correlations",
"description": "Pairwise Pearson/Spearman/Kendall correlations with p-values, optional partial correlations, and Holm/BH/Bonferroni adjustment across pair-method tests when scoring customers or a predictive model. Call with columns and rows; optional methods, partial, adjust. Returns pairs, partial, rowsUsed, and caps (pairs includes a, b, n, pearson, spearman, kendall). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, columns, rows, methods, partial, adjust, pairs, rowsUsed, caps, correlation analysis.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"columns",
"rows"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
],
"description": "item, number. Required."
},
"description": "item, array. Required."
},
"description": "rows, array. Required."
},
"adjust": {
"enum": [
"none",
"holm",
"bh",
"bonferroni"
],
"type": "string",
"default": "none",
"description": "adjust, string, one of none, holm, bh, bonferroni. Required."
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "item, string, length 1 to 64. Required."
},
"description": "columns, array. Required."
},
"methods": {
"type": "array",
"items": {
"enum": [
"pearson",
"spearman",
"kendall"
],
"type": "string",
"description": "item, string, one of pearson, spearman, kendall. Required."
},
"default": [
"pearson"
],
"description": "methods, array. Required."
},
"partial": {
"type": "array",
"items": {
"type": "object",
"required": [
"x",
"y"
],
"properties": {
"x": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "x, string, length 1 to 64. Required."
},
"y": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "y, string, length 1 to 64. Required."
},
"given": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "item, string, length 1 to 64. Required."
},
"default": [],
"description": "given, array. Required."
}
},
"description": "item, object. Required."
},
"description": "partial, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"caps": {
"type": "object",
"properties": {
"maxRows": {
"type": "number",
"description": "maxRows. Number."
},
"maxColumns": {
"type": "number",
"description": "maxColumns. Number."
}
},
"description": "caps. Object.",
"additionalProperties": {}
},
"pairs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"a": {
"type": "string",
"description": "a. String."
},
"b": {
"type": "string",
"description": "b. String."
},
"n": {
"type": "number",
"description": "n. Number."
},
"kendall": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "p. Number."
},
"tau": {
"type": "number",
"description": "tau. Number."
},
"pAdjusted": {
"type": "number",
"description": "pAdjusted. Number."
}
},
"description": "kendall. Object.",
"additionalProperties": {}
},
"pearson": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "p. Number."
},
"r": {
"type": "number",
"description": "r. Number."
},
"pAdjusted": {
"type": "number",
"description": "pAdjusted. Number."
}
},
"description": "pearson. Object.",
"additionalProperties": {}
},
"spearman": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "p. Number."
},
"rho": {
"type": "number",
"description": "rho. Number."
},
"pAdjusted": {
"type": "number",
"description": "pAdjusted. Number."
}
},
"description": "spearman. Object.",
"additionalProperties": {}
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "pairs. Array."
},
"partial": {
"type": "array",
"items": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "p. Number."
},
"r": {
"type": "number",
"description": "r. Number."
},
"x": {
"type": "string",
"description": "x. String."
},
"y": {
"type": "string",
"description": "y. String."
},
"df": {
"type": "number",
"description": "df. Number."
},
"given": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "given. Array."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "partial. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"rowsUsed": {
"type": "number",
"description": "rowsUsed. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Pearson, Spearman, Kendall and partial correlations",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Fit logistic propensity scores, match treated to controls 1:1 on the logit within a caliper, and report SMD balance and common-support counts when scoring customers or a predictive model. Call with units; optional caliperSdLogit, replacement, order, seed. Returns model, caliper, pairs, unmatchedTreated, balance, and commonSupport (model includes intercept, coefficients). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, units, caliperSdLogit, replacement, order, seed, model, caliper, pairs, unmatchedTreated, balance, commonSupport, propensity score match.
| Parameter | Type | Description |
|---|---|---|
| seed | integer | seed, integer, from -9007199254740991 to 9007199254740991. Required. |
| order | string | order, string, one of descending_score, ascending_score, random. Required. |
| units * | array | units, array. Required. |
| replacement | boolean | replacement, boolean. Required. |
| caliperSdLogit | number | caliperSdLogit, number. Required. |
{
"name": "predictive-analytics_propensity-score-match",
"title": "Propensity-score matching with balance diagnostics",
"description": "Fit logistic propensity scores, match treated to controls 1:1 on the logit within a caliper, and report SMD balance and common-support counts when scoring customers or a predictive model. Call with units; optional caliperSdLogit, replacement, order, seed. Returns model, caliper, pairs, unmatchedTreated, balance, and commonSupport (model includes intercept, coefficients). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, units, caliperSdLogit, replacement, order, seed, model, caliper, pairs, unmatchedTreated, balance, commonSupport, propensity score match.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"units"
],
"properties": {
"seed": {
"type": "integer",
"default": 42,
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "seed, integer, from -9007199254740991 to 9007199254740991. Required."
},
"order": {
"enum": [
"descending_score",
"ascending_score",
"random"
],
"type": "string",
"default": "descending_score",
"description": "order, string, one of descending_score, ascending_score, random. Required."
},
"units": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"treated",
"covariates"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"treated": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
],
"description": "treated, value. Required."
},
"covariates": {
"type": "object",
"description": "covariates, object. Required.",
"propertyNames": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"additionalProperties": {
"type": "number"
}
}
},
"description": "item, object. Required."
},
"description": "units, array. Required."
},
"replacement": {
"type": "boolean",
"default": false,
"description": "replacement, boolean. Required."
},
"caliperSdLogit": {
"type": "number",
"default": 0.2,
"description": "caliperSdLogit, number. Required.",
"exclusiveMinimum": 0
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"model": {
"type": "object",
"properties": {
"intercept": {
"type": "number",
"description": "intercept. Number."
},
"coefficients": {
"type": "object",
"properties": {
"age": {
"type": "number",
"description": "age. Number."
}
},
"description": "coefficients. Object.",
"additionalProperties": {}
}
},
"description": "model. Object.",
"additionalProperties": {}
},
"pairs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"control": {
"type": "string",
"description": "control. String."
},
"treated": {
"type": "string",
"description": "treated. String."
},
"distance": {
"type": "number",
"description": "distance. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "pairs. Array."
},
"balance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"smdAfter": {
"type": "number",
"description": "smdAfter. Number."
},
"covariate": {
"type": "string",
"description": "covariate. String."
},
"smdBefore": {
"type": "number",
"description": "smdBefore. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "balance. Array."
},
"caliper": {
"type": "number",
"description": "caliper. Number."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"commonSupport": {
"type": "object",
"properties": {
"controlOutside": {
"type": "number",
"description": "controlOutside. Number."
},
"treatedOutside": {
"type": "number",
"description": "treatedOutside. Number."
}
},
"description": "commonSupport. Object.",
"additionalProperties": {}
},
"unmatchedTreated": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "unmatchedTreated. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Propensity-score matching with balance diagnostics",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Tool calls wrap the existing POST APIs and stay pay-per-call. initialize and tools/list are free. An unpaid tool call returns the x402 payment terms in the tool result and does not run. Retry with the payment in params._meta["x402/payment"], or send payment-signature. Payment settles only after a successful result.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
{
"name": "predictive-analytics_dbscan-cluster",
"title": "DBSCAN density clustering with noise labels",
"description": "Density-based clustering with Euclidean or haversine distance, core/border/noise labelling, and an optional k-distance knee suggestion for eps when scoring customers or a predictive model. Call with columns, rows, and eps; optional minSamples, metric, kDistance. Returns labels, clusters, noise, corePoints, kDistance, rowsUsed, droppedRows, and caps. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, columns, rows, eps, minSamples, metric, kDistance, labels, clusters, noise, corePoints, rowsUsed, droppedRows, caps, DBSCAN density clustering with noise labels.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"columns",
"rows",
"eps"
],
"properties": {
"eps": {
"type": "number",
"description": "eps, number. Required.",
"exclusiveMinimum": 0
},
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
],
"description": "item, number. Required."
},
"description": "item, array. Required."
},
"description": "rows, array. Required."
},
"metric": {
"enum": [
"euclidean",
"haversine"
],
"type": "string",
"default": "euclidean",
"description": "metric, string, one of euclidean, haversine. Required."
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "item, string, length 1 to 64. Required."
},
"description": "columns, array. Required."
},
"kDistance": {
"type": "boolean",
"default": false,
"description": "kDistance, boolean. Required."
},
"minSamples": {
"type": "integer",
"default": 5,
"maximum": 1000,
"minimum": 2,
"description": "minSamples, integer, from 2 to 1000. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"caps": {
"type": "object",
"properties": {
"maxRows": {
"type": "number",
"description": "maxRows. Number."
},
"maxColumns": {
"type": "number",
"description": "maxColumns. Number."
}
},
"description": "caps. Object.",
"additionalProperties": {}
},
"noise": {
"type": "number",
"description": "noise. Number."
},
"labels": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "labels. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"clusters": {
"type": "number",
"description": "clusters. Number."
},
"rowsUsed": {
"type": "number",
"description": "rowsUsed. Number."
},
"kDistance": {
"type": "null",
"description": "kDistance. Null."
},
"corePoints": {
"type": "number",
"description": "corePoints. Number."
},
"droppedRows": {
"type": "number",
"description": "droppedRows. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "DBSCAN density clustering with noise labels",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "predictive-analytics_decision-tree-train",
"title": "Train a CART decision tree",
"description": "Fit a classification or regression CART tree with depth and leaf limits, readable rules, feature importance and optional predictions when scoring customers or a predictive model. Call with task, columns, rows, and target; optional maxDepth, minSamplesLeaf, predict. Returns rules, tree, featureImportance, trainAccuracy, predictions, warnings, rowsUsed, droppedRows. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, task, columns, rows, target, maxDepth, minSamplesLeaf, predict, rules, tree, featureImportance, trainAccuracy, predictions, warnings, rowsUsed.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"task",
"columns",
"rows",
"target"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
],
"description": "item, number. Required."
},
"description": "item, array. Required."
},
"description": "rows, array. Required."
},
"task": {
"enum": [
"classification",
"regression"
],
"type": "string",
"description": "task, string, one of classification, regression. Required."
},
"target": {
"type": "array",
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 64,
"minLength": 1
}
],
"description": "item, value. Required."
},
"description": "target, array. Required."
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "item, string, length 1 to 64. Required."
},
"description": "columns, array. Required."
},
"predict": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number",
"description": "item, number. Required."
},
"description": "item, array. Required."
},
"description": "predict, array. Optional."
},
"maxDepth": {
"type": "integer",
"default": 5,
"maximum": 20,
"minimum": 1,
"description": "maxDepth, integer, from 1 to 20. Required."
},
"minSamplesLeaf": {
"type": "integer",
"default": 1,
"maximum": 1000,
"minimum": 1,
"description": "minSamplesLeaf, integer, from 1 to 1000. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"caps": {
"type": "object",
"properties": {
"maxRows": {
"type": "number",
"description": "maxRows. Number."
},
"maxColumns": {
"type": "number",
"description": "maxColumns. Number."
}
},
"description": "caps. Object.",
"additionalProperties": {}
},
"tree": {
"type": "object",
"properties": {
"left": {
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "value. Number."
}
},
"description": "left. Object.",
"additionalProperties": {}
},
"right": {
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "value. Number."
}
},
"description": "right. Object.",
"additionalProperties": {}
},
"feature": {
"type": "string",
"description": "feature. String."
},
"threshold": {
"type": "number",
"description": "threshold. Number."
}
},
"description": "tree. Object.",
"additionalProperties": {}
},
"rules": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "rules. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"rowsUsed": {
"type": "number",
"description": "rowsUsed. Number."
},
"warnings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "warnings. Array."
},
"droppedRows": {
"type": "number",
"description": "droppedRows. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"predictions": {
"type": "array",
"items": {
"type": "number",
"description": "item. Number."
},
"description": "predictions. Array."
},
"trainAccuracy": {
"type": "number",
"description": "trainAccuracy. Number."
},
"featureImportance": {
"type": "object",
"properties": {
"age": {
"type": "number",
"description": "age. Number."
},
"income": {
"type": "number",
"description": "income. Number."
}
},
"description": "featureImportance. Object.",
"additionalProperties": {}
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Train a CART decision tree",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| maxFeatures |
| any |
| maxFeatures, value. Required. |
| minSamplesLeaf | integer | minSamplesLeaf, integer, from 1 to 1000. Required. |
| permutationRepeats | integer | permutationRepeats, integer, from 1 to 50. Required. |
{
"name": "predictive-analytics_random-forest-importance",
"title": "Random-forest OOB score and permutation importance",
"description": "Train a small seeded random forest, report out-of-bag accuracy or R², and estimate permutation feature importance with Fisher-Yates shuffles when scoring customers or a predictive model. Call with task, columns, rows, and target; optional trees, maxFeatures, maxDepth, seed, permutationRepeats, minSamplesLeaf. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when scoring customers or a predictive model, task, columns, rows, target, trees, maxFeatures, maxDepth, seed, permutationRepeats, minSamplesLeaf, oobScore, importance, rowsUsed, droppedRows.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"task",
"columns",
"rows",
"target"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
],
"description": "item, number. Required."
},
"description": "item, array. Required."
},
"description": "rows, array. Required."
},
"seed": {
"type": "integer",
"default": 42,
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "seed, integer, from -9007199254740991 to 9007199254740991. Required."
},
"task": {
"enum": [
"classification",
"regression"
],
"type": "string",
"description": "task, string, one of classification, regression. Required."
},
"trees": {
"type": "integer",
"default": 100,
"maximum": 500,
"minimum": 10,
"description": "trees, integer, from 10 to 500. Required."
},
"target": {
"type": "array",
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 64,
"minLength": 1
}
],
"description": "item, value. Required."
},
"description": "target, array. Required."
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "item, string, length 1 to 64. Required."
},
"description": "columns, array. Required."
},
"maxDepth": {
"anyOf": [
{
"type": "integer",
"maximum": 20,
"minimum": 1
},
{
"type": "null"
}
],
"default": null,
"description": "maxDepth, value. Required."
},
"maxFeatures": {
"anyOf": [
{
"enum": [
"sqrt",
"log2"
],
"type": "string"
},
{
"type": "integer",
"maximum": 100,
"minimum": 1
}
],
"default": "sqrt",
"description": "maxFeatures, value. Required."
},
"minSamplesLeaf": {
"type": "integer",
"default": 1,
"maximum": 1000,
"minimum": 1,
"description": "minSamplesLeaf, integer, from 1 to 1000. Required."
},
"permutationRepeats": {
"type": "integer",
"default": 5,
"maximum": 50,
"minimum": 1,
"description": "permutationRepeats, integer, from 1 to 50. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"caps": {
"type": "object",
"properties": {
"maxRows": {
"type": "number",
"description": "maxRows. Number."
},
"maxColumns": {
"type": "number",
"description": "maxColumns. Number."
}
},
"description": "caps. Object.",
"additionalProperties": {}
},
"seed": {
"type": "number",
"description": "seed. Number."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"oobScore": {
"type": "number",
"description": "oobScore. Number."
},
"rowsUsed": {
"type": "number",
"description": "rowsUsed. Number."
},
"importance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sd": {
"type": "number",
"description": "sd. Number."
},
"mean": {
"type": "number",
"description": "mean. Number."
},
"feature": {
"type": "string",
"description": "feature. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "importance. Array."
},
"droppedRows": {
"type": "number",
"description": "droppedRows. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Random-forest OOB score and permutation importance",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}