Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mark FX

macrumors regular
Original poster
Nov 18, 2011
159
17
West Sussex, UK
Does anybody no if there is a way to turn off automatic debug printout to Xcode console of MLRegressor class's ?

I've recently been experimenting with CreateML framework, which is part of the CoreML framework.
And have notice that when creating MLRegressor's they automatically display large amounts of debug description data to Xcode's console.
This data is NOT printed from code via "print()" statements, but happens automatically by the MLRegressor class's on initialisation, regardless of the data or parameters provided via code in the initialisation.
Most of this debug printout is related to the MLRegressor's in memory MLModel specification and performance metrics.

At first this code can be useful in the learning process, but once familiar with the objects and there parameters.
You want to be able to print out specifics of your own, but because of the shear amount of automatic debug description, you have trouble finding your own debug console printouts buried within the automatic stuff.

There is no settings within the MLRegressor documentation to be able to turn off this automatic console printout.
So it might be an Xcode setting that could be adjusted, but I don't know which one it could be.

Also another side effect of using CreateML and CoreML code is endless amounts of temporary files which are created, and show up as recovered files in the "Trash" folder after restarting the machine.
Which again is all related to the MLModel's created by the MLRegressor class's code.

Any Ideas ?

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.