Post

Replies

Boosts

Views

Activity

Reply to Making a model in MLLinearRegressor works with Sonoma, but on upgrading to 15.3.1 it no longer does "anything"
OK, I have learnt why it was failing to do anything. I had set it up within a Task, using Task { await withTaskGroup(of: Void.self) { group in for i in 0...numberoftasks - 1 { group.addTask { autoreleasepool { self.functiontomakemodel() } } } } } If I remove the Task, and just keep the loop it works. Now I just need to learn how to adjust this to use multiple cores with the new OS, any help would be much appreciated.
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Mar ’25
Reply to TensorFlow is slow after upgrading to Sonoma
I am not using tensor flow, simply training a model using .csv files and DataFrames using something simple like let params = MLBoostedTreeRegressor.ModelParameters(validation: .split(strategy: .automatic),maxIterations:5000) let model = try MLBoostedTreeRegressor(trainingData: trainingdata, targetColumn: columntopredict, parameters: params) It is almost 7x slower on Sonoma, roughly the same difference in speed that you are noticing. I have tried looking for flags to set, I have changed all deprecated code, with nothing making any difference. My M1 laptop used to run hot whilst running my code under Ventura, and now it is at a pleasant ambient temperature and not really trying under Sonoma. Something has definitely changed in the update to Sonoma, and it has made my application stupidly slow. The only advice I've had so far is to try the developer beta, but I'm just not willing to go that route yet.
Topic: Graphics & Games SubTopic: General Tags:
Oct ’23