← Market

Predictive Analytics · Cohort Retention

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. Docs: https://www.brainiac.software/api/predictive-analytics/cohort-retention

POST https://www.brainiac.software/api/v1/predictive-analytics/cohort-retention

0.03 USDC on Base · payTo 0x6428665E83F503904571104311bB78CBb29b975c

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.03 USDC · payTo 0x6428665E83F503904571104311bB78CBb29b975c · via cdp · settles direct
{
  "asOf": "2026-03-31",
  "events": [
    {
      "activity": [
        "2026-01-05",
        "2026-02-10",
        "2026-03-02"
      ],
      "signup": "2026-01-05",
      "userId": "u1"
    },
    {
      "activity": [
        "2026-01-20",
        "2026-03-15"
      ],
      "signup": "2026-01-20",
      "userId": "u2"
    },
    {
      "activity": [
        "2026-01-28"
      ],
      "signup": "2026-01-28",
      "userId": "u3"
    },
    {
      "activity": [
        "2026-02-03",
        "2026-03-04"
      ],
      "signup": "2026-02-03",
      "userId": "u4"
    },
    {
      "activity": [
        "2026-02-14"
      ],
      "signup": "2026-02-14",
      "userId": "u5"
    }
  ],
  "mode": "classic",
  "period": "month",
  "timezone": "UTC"
}
{
  "cohorts": [
    {
      "cohort": "2026-01",
      "partial": true,
      "retention": [
        1,
        0.333333333333
      ],
      "size": 3
    },
    {
      "cohort": "2026-02",
      "partial": true,
      "retention": [
        1,
        0.5
      ],
      "size": 2
    }
  ],
  "limitations": [
    "Cohort retention by signup period; classic counts activity in period k, rolling counts activity in period k or later.",
    "Outputs are statistical calculations on caller-supplied inputs for human review. They are not legal, medical, credit, t"
  ],
  "sources": [
    {
      "retrievedAt": "2026-11-14",
      "source": "Caller-supplied tabular data processed locally",
      "status": "ok",
      "url": "https://www.brainiac.software/api/v1/predictive-analytics"
    }
  ],
  "weightedCurve": [
    1,
    0.4
  ]
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Sellers · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human store: human checkout, card & crypto · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust scorepending / 100 · breakdown
Probe uptime (30d)— over 0 probes · daily
Avg 402 latency— ms
Paid calls (30d, on-chain)0 calls · 0 buyers

How to call

POST https://www.brainiac.software/api/v1/predictive-analytics/cohort-retention · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "events supplied by the caller for this operation.",
      "example": [
        {
          "userId": "u1",
          "signup": "2026-01-05",
          "activity": [
            "2026-01-05",
            "2026-02-10",
            "2026-03-02"
          ]
        },
        {
          "userId": "u2",
          "signup": "2026-01-20",
          "activity": [
            "2026-01-20",
            "2026-03-15"
          ]
        },
        {
          "userId": "u3",
          "signup": "2026-01-28",
          "activity": [
            "2026-01-28"
          ]
        },
        {
          "userId": "u4",
          "signup": "2026-02-03",
          "activity": [
            "2026-02-03",
            "2026-03-04"
          ]
        },
        {
          "userId": "u5",
          "signup": "2026-02-14",
          "activity": [
            "2026-02-14"
          ]
        }
      ]
    },
    "period": {
      "type": "string",
      "enum": [
        "day",
        "week",
        "month"
      ],
      "description": "period supplied by the caller for this operation.",
      "example": "month"
    },
    "mode": {
      "type": "string",
      "enum": [
        "classic",
        "rolling"
      ],
      "description": "mode supplied by the caller for this operation.",
      "example": "classic"
    },
    "asOf": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "as Of supplied by the caller for this operation.",
      "example": "2026-03-31"
    },
    "timezone": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "timezone supplied by the caller for this operation.",
      "example": "UTC"
    }
  },
  "required": [
    "events",
    "asOf"
  ],
  "additionalProperties": false
}
Output schema
{
  "type": "object"
}
curl -i -X POST 'https://www.brainiac.software/api/v1/predictive-analytics/cohort-retention' \
  -H 'content-type: application/json' -d '{"events":[{"userId":"u1","signup":"2026-01-05","activity":["2026-01-05","2026-02-10","2026-03-02"]},{"userId":"u2","signup":"2026-01-20","activity":["2026-01-20","2026-03-15"]},{"userId":"u3","signup":"2026-01-28","activity":["2026-01-28"]},{"userId":"u4","signup":"2026-02-03","activity":["2026-02-03","2026-03-04"]},{"userId":"u5","signup":"2026-02-14","activity":["2026-02-14"]}],"period":"month","mode":"classic","asOf":"2026-03-31","timezone":"UTC"}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)