* Converts and returns the data in the NDframe as a Tensorflow.js Tensor.
()
| 164 | * Converts and returns the data in the NDframe as a Tensorflow.js Tensor. |
| 165 | */ |
| 166 | get tensor() { |
| 167 | if (this.$isSeries) { |
| 168 | return tensorflow.tensor1d(this.$data, this.$dtypes[0]); |
| 169 | } else { |
| 170 | return tensorflow.tensor2d(this.$data, this.shape, "float32") |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | /** |
| 175 | * Returns the dtypes of the columns |
nothing calls this directly
no outgoing calls
no test coverage detected