MCPcopy Create free account
hub / github.com/sql-machine-learning/sqlflow / TestExplain

Function TestExplain

go/codegen/xgboost/codegen_explain_test.go:23–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21)
22
23func TestExplain(t *testing.T) {
24 a := assert.New(t)
25 tir := ir.MockTrainStmt(true)
26 astmt := &ir.ExplainStmt{
27 Select: "SELECT * FROM iris.train",
28 Explainer: "TreeExplainer",
29 Attributes: map[string]interface{}{
30 "summary.plot_type": "dot",
31 "others.type": "bar",
32 },
33 TrainStmt: tir,
34 }
35 _, err := Explain(astmt, mockSession())
36 a.NoError(err)
37}

Callers

nothing calls this directly

Calls 3

MockTrainStmtFunction · 0.92
ExplainFunction · 0.70
mockSessionFunction · 0.70

Tested by

no test coverage detected