Base.points¶
- property Base.points¶
An object handling functions manipulating data by points.
A point is an abstract slice containing data elements within some shared context. In a concrete sense, points can be thought of as the data rows but a row can be organized in many ways. To optimize for machine learning, each row should be modified to meet the definition of a point.
This attribute is an object that can be used to iterate over the points (rows) and contains methods that operate over the data in this object point-by-point.
Examples
>>> lst = [[1, 2, 3, 4], [5, 6, 7, 8], [0, 0, 0, 0]] >>> X = nimble.data(lst) >>> len(X.points) 3 >>> X.points.permute([2, 1, 0]) >>> X <Matrix 3pt x 4ft 0 1 2 3 ┌─────────── 0 │ 0 0 0 0 1 │ 5 6 7 8 2 │ 1 2 3 4 >
Keywords: rows, index, data points, instances, observations, values, iterate, iterrows