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

Function resolveFieldMeta

go/codegen/xgboost/codegen.go:186–195  ·  view source on GitHub ↗
(desc *ir.FieldDesc)

Source from the content-addressed store, hash-verified

184}
185
186func resolveFieldMeta(desc *ir.FieldDesc) FieldMeta {
187 return FieldMeta{
188 FeatureName: desc.Name,
189 DType: ir.DTypeToString(desc.DType),
190 Delimiter: desc.Delimiter,
191 Format: desc.Format,
192 Shap: desc.Shape,
193 IsSparse: desc.IsSparse,
194 }
195}
196
197func resolveFeatureMeta(fds []ir.FieldDesc) ([]byte, []string, error) {
198 ret := make(map[string]FieldMeta)

Callers 5

resolveFeatureMetaFunction · 0.85
newTrainFillerFunction · 0.85
PredFunction · 0.85
EvaluateFunction · 0.85
ExplainFunction · 0.85

Calls 1

DTypeToStringFunction · 0.92

Tested by

no test coverage detected