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

Method GetMetaAsString

go/model/model.go:66–71  ·  view source on GitHub ↗

GetMetaAsString return specified metadata as string

(key string)

Source from the content-addressed store, hash-verified

64
65// GetMetaAsString return specified metadata as string
66func (m *Model) GetMetaAsString(key string) string {
67 if m.Meta == nil {
68 return ""
69 }
70 return m.Meta.Get(key).MustString()
71}
72
73// Save all files in workDir as a tarball to a filesystem or sqlfs.
74func (m *Model) Save(modelURI string, session *pb.Session) error {

Callers 5

TestModelFileStoreFunction · 0.95
TestModelDBStoreFunction · 0.95
ReleaseModelMethod · 0.80
decodeMetaFunction · 0.80
releaseModelFromLocalFunction · 0.80

Calls 1

GetMethod · 0.80

Tested by 2

TestModelFileStoreFunction · 0.76
TestModelDBStoreFunction · 0.76