datenvertrag.halowerk.com/v1/tree-isotonic-regression
Compute the unique weighted least-squares fit on a captured rooted tree: minimize sum weights[i]*(fit[i]-values[i])^2 subject to fit[parent[i]] <= fit[i]. Return the entire fit and objective as reduced numerator/denominator strings, maximal connected equal-value blocks, and exact nonnegative KKT edge multipliers for the unhalved objective. Multipliers are indexed by child; root entry is zero. Node
POST
https://datenvertrag.halowerk.com/v1/tree-isotonic-regressionUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://datenvertrag.halowerk.com/v1/tree-isotonic-regression", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"claim":["1/1","1/1","4/1"],"tree":{"parents":[-1,0,0],"values":[3,0,4],"weights":[1,2,1]}}),
});
console.log(await res.json());Example input
{
"claim": [
"1/1",
"1/1",
"4/1"
],
"tree": {
"parents": [
-1,
0,
0
],
"values": [
3,
0,
4
],
"weights": [
1,
2,
1
]
}
}