How to call member function inherited from Dataset type from PersistedDataset object

#1

While trying to call any member function inherited from the Dataset type from a PersistedDataset object, I come across an error:

“wrapped ClassCastException: c3.type.metadata.impl.PersistableImpl cannot be cast to c3.type.machineLearning.Dataset”

Ex:

var tensor = PersistedDataset.make({"data": [0, 1, 2, 3, 4, 5, 6, 7], "shape": [2, 4], "orient": "row", "indices": {0: ["A", "B"], 1: ["C", "D", "E", "F"]}})
tensor.describe()

How can I call these inherited member functions?

0 Likes