MCPcopy Create free account
hub / github.com/cjlin1/liblinear / predict

Function predict

python/liblinear/liblinearutil.py:167–285  ·  view source on GitHub ↗

predict(y, x, m [, options]) -> (pred_labels, pred_metrics, pred_values) y: a list/tuple/ndarray of l true labels (type must be int/double). It is used for calculating the accuracy. Use [] if true labels are unavailable. x: 1. a list/tuple of l training instances. Featur

(y, x, m, options="")

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 8

gen_feature_nodearrayFunction · 0.85
evaluationsFunction · 0.85
get_nr_classMethod · 0.80
get_nr_featureMethod · 0.80
is_probability_modelMethod · 0.80
is_regression_modelMethod · 0.80
feature_nodeClass · 0.70
infoFunction · 0.70

Tested by

no test coverage detected