MCPcopy Create free account
hub / github.com/apple/ml-pointersect / __getitem__

Method __getitem__

tests/cdslib/script/test_base_train.py:26–30  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

24 return self.xs.size(0)
25
26 def __getitem__(self, i):
27 return (
28 self.xs[i], # (dim_x,)
29 self.ys[i], # float
30 )
31
32
33class LinearRegressionTrain(BaseTrainProcess):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected