MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms / random_index

Method random_index

mla/svm/svm.py:141–145  ·  view source on GitHub ↗
(self, z)

Source from the content-addressed store, hash-verified

139 return L, H
140
141 def random_index(self, z):
142 i = z
143 while i == z:
144 i = np.random.randint(0, self.n_samples - 1)
145 return i

Callers 1

_trainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected