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

Function train

python/liblinear/liblinearutil.py:46–165  ·  view source on GitHub ↗

train(y, x [, options]) -> model | ACC y: a list/tuple/ndarray of l true labels (type must be int/double). x: 1. a list/tuple of l training instances. Feature vector of each training instance is a list/tuple or dictionary. 2. an l * n numpy ndarray or scipy spmatrix

(arg1, arg2=None, arg3=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

evaluationsFunction · 0.85
toPyModelFunction · 0.85
set_biasMethod · 0.80
problemClass · 0.70
parameterClass · 0.70

Tested by

no test coverage detected