Is there a way to print a DMatrix as ASCII or JSON?


#1

Hi folks.

Is there a way to print a DMatrix as ASCII or JSON from CPython 3.6?

If not, is there a way to just iterate over a DMatrix’ rows and columns from CPython 3.6?

Thanks!


As yet unexplained nan's from Booster.predict
#2

I’m afraid currently it is not possible. What is your use case for iterating over a DMatrix? Do you have access to the original data source?