MCPcopy Index your code
hub / github.com/clips/pattern / load_model

Function load_model

pattern/vector/svm/liblinearutil.py:29–40  ·  view source on GitHub ↗

load_model(model_file_name) -> model Load a LIBLINEAR model from model_file_name and return.

(model_file_name)

Source from the content-addressed store, hash-verified

27 return (prob_y, prob_x)
28
29def load_model(model_file_name):
30 """
31 load_model(model_file_name) -> model
32
33 Load a LIBLINEAR model from model_file_name and return.
34 """
35 model = liblinear.load_model(model_file_name.encode())
36 if not model:
37 print("can't open model file %s" % model_file_name)
38 return None
39 model = toPyModel(model)
40 return model
41
42def save_model(model_file_name, model):
43 """

Callers

nothing calls this directly

Calls 3

printFunction · 0.85
toPyModelFunction · 0.70
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…