Closed
Description
In my custom vega-lite template, I tried do to something like this to compute the sum of squared residuals:
"transform": [
{
"joinaggregate": [
{
"op": "mean",
"field": "lab",
"as": "mean_y"
}
]
},
{
"calculate": "pow(datum.<DVC_METRIC_Y> - datum.<DVC_METRIC_X>,2)",
"as": "SR"
},
{
"joinaggregate": [
{
"op": "sum",
"field": "SR",
"as": "SSR"
}
]
}
]
However, it seems impossible to do this because it looks like dvc-render replace only a quoted anchor like f'"{cls.anchor(name)}"'
instead of just the anchor f'{cls.anchor(name)}'
I didn't dig a lot into this, but I was just wondering if this could just be this way so we could use anchors on datum?
Thank you!