new metric
This commit is contained in:
parent
0b44893a77
commit
802ceeb397
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"myMetric": 543
|
"myMetric": 543,
|
||||||
|
"new_metric": 333
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
step new_metric
|
||||||
|
0 333
|
|
|
@ -36,10 +36,10 @@
|
||||||
<div style="display: flex;justify-content: center;">
|
<div style="display: flex;justify-content: center;">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th style="text-align: right;"> myMetric</th></tr>
|
<tr><th style="text-align: right;"> myMetric</th><th style="text-align: right;"> new_metric</th></tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td style="text-align: right;"> 543</td></tr>
|
<tr><td style="text-align: right;"> 543</td><td style="text-align: right;"> 333</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,6 +53,14 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id = "static_new_metric">
|
||||||
|
<script type = "text/javascript">
|
||||||
|
var spec = {"$schema": "https://vega.github.io/schema/vega-lite/v5.json", "data": {"values": [{"step": "0", "new_metric": "333", "rev": "workspace"}]}, "title": "new_metric", "width": 300, "height": 300, "params": [{"name": "smooth", "value": 0.001, "bind": {"input": "range", "min": 0.001, "max": 1, "step": 0.001}}], "layer": [{"mark": "line", "encoding": {"x": {"field": "step", "type": "quantitative", "title": "step"}, "y": {"field": "new_metric", "type": "quantitative", "title": "new_metric", "scale": {"zero": false}}, "color": {"field": "rev", "type": "nominal"}, "tooltip": [{"field": "step", "title": "step", "type": "quantitative"}, {"field": "new_metric", "title": "new_metric", "type": "quantitative"}]}, "transform": [{"loess": "new_metric", "on": "step", "groupby": ["rev", "filename", "field", "filename::field"], "bandwidth": {"signal": "smooth"}}]}, {"mark": {"type": "line", "opacity": 0.2}, "encoding": {"x": {"field": "step", "type": "quantitative", "title": "step"}, "y": {"field": "new_metric", "type": "quantitative", "title": "new_metric", "scale": {"zero": false}}, "color": {"field": "rev", "type": "nominal"}, "tooltip": [{"field": "step", "title": "step", "type": "quantitative"}, {"field": "new_metric", "title": "new_metric", "type": "quantitative"}]}}, {"mark": {"type": "circle", "size": 10, "tooltip": {"content": "encoding"}}, "encoding": {"x": {"aggregate": "max", "field": "step", "type": "quantitative", "title": "step"}, "y": {"aggregate": {"argmax": "step"}, "field": "new_metric", "type": "quantitative", "title": "new_metric", "scale": {"zero": false}}, "color": {"field": "rev", "type": "nominal"}}}]};
|
||||||
|
vegaEmbed('#static_new_metric', spec);
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id = "iris_feature_importance">
|
<div id = "iris_feature_importance">
|
||||||
<script type = "text/javascript">
|
<script type = "text/javascript">
|
||||||
var spec = {"$schema": "https://vega.github.io/schema/vega-lite/v5.json", "data": {"values": [{"name": "petal_width", "importance": 0.4, "rev": "workspace"}, {"name": "petal_length", "importance": 0.33, "rev": "workspace"}, {"name": "sepal_width", "importance": 0.24, "rev": "workspace"}, {"name": "sepal_length", "importance": 0.03, "rev": "workspace"}]}, "title": "Iris Dataset: Feature Importance", "width": 300, "height": 300, "mark": {"type": "bar"}, "encoding": {"x": {"field": "importance", "type": "quantitative", "title": "Feature Importance", "scale": {"zero": false}}, "y": {"field": "name", "type": "nominal", "title": "Feature Name"}, "yOffset": {"field": "rev"}, "color": {"field": "rev", "type": "nominal"}}};
|
var spec = {"$schema": "https://vega.github.io/schema/vega-lite/v5.json", "data": {"values": [{"name": "petal_width", "importance": 0.4, "rev": "workspace"}, {"name": "petal_length", "importance": 0.33, "rev": "workspace"}, {"name": "sepal_width", "importance": 0.24, "rev": "workspace"}, {"name": "sepal_length", "importance": 0.03, "rev": "workspace"}]}, "title": "Iris Dataset: Feature Importance", "width": 300, "height": 300, "mark": {"type": "bar"}, "encoding": {"x": {"field": "importance", "type": "quantitative", "title": "Feature Importance", "scale": {"zero": false}}, "y": {"field": "name", "type": "nominal", "title": "Feature Name"}, "yOffset": {"field": "rev"}, "color": {"field": "rev", "type": "nominal"}}};
|
||||||
|
|
Loading…
Reference in New Issue