MCPcopy Create free account
hub / github.com/modAL-python/modAL / add_row

Function add_row

modAL/utils/data.py:72–86  ·  view source on GitHub ↗

Returns X' = [X row]

(X: modALinput, row: modALinput)

Source from the content-addressed store, hash-verified

70
71
72def add_row(X: modALinput, row: modALinput):
73 """
74 Returns X' =
75
76 [X
77
78 row] """
79 if isinstance(X, np.ndarray):
80 return np.vstack((X, row))
81 elif isinstance(X, list):
82 return np.vstack((X, row)).tolist()
83
84 # data_vstack readily supports stacking of matrix as first argument
85 # and row as second for the other data types
86 return data_vstack([X, row])
87
88
89def retrieve_rows(

Callers 1

expected_error_reductionFunction · 0.90

Calls 1

data_vstackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…