Hi,
Thank you for the reply.
I am following the tutorial on "Control training in CreateMl with Swift" to set up the training on the device. So to create the sessionsDirectory I used the following code.
let experimentID = "test4"
let sessionDirectory = URL(fileURLWithPath: "\(NSTemporaryDirectory())WWDC-\(experimentID)")
What appears in the console is that the model is trained (iterations are shown to be completed), but then nothing else happens. I wonder if it is a problem with how I am using Combine to retrieve the results and checkpoints - none of the test print statements fire inside the closures, which suggests the code block has not run.
job.result.sink { result in
print("result", result)
}
receiveValue: { model in
print("result", model)
}
.store(in: &subscriptions)
Your above code suggestion did not seem to run either.
I am new to coding, and to combine, so I am sure this is a something simple. Any further help would be appreciated.
Thanks again
Post
Replies
Boosts
Views
Activity
Just a quick follow up, it’s is working now - your code works, not sure why it didn’t the first time. I deleted the app and started a new project, and it’s all working now.
one quick question - should I clean/wipe the session directory after each model training, to free up space? And where would the best practice be for storing the complied models?
thanks again for your help, I will hopefully release this feature soon in my app!
Thanks @vadimwe! Life saver and time saver! worked for me too... I am a newbie to developing, but will we need to change it back to source="$(readlink "${source}")" at a later update to xcode? What does the code change do out of curiosity ? Thanks again for your help!
Had the same problem (expired but can't see a renew button anywhere - on dev app or on developer website)- this worked for me
go to the app store and log in using the same email u used for the previous purchases
click the account (top right), and you will see "subscriptions" and other options.
I tapped on subscriptions, and saw my developer subscription has expired, and an option to renew or repurchase - I can't remember
I clicked on it and then it was like a normal App Store purchase
Immediately renewed my membership and the App Store Connect no longer says expired and access to everything is back
not sure if this was significant - I used to be in the UK so on the UK App Store, then I moved to Spain and switched stores, maybe that messed up my auto-renew? anyway before I tried the above I switched my App Store region back to the UK, not sure if it made a difference or not.
Anyway, total waste of time, but hope it helps someone else!
Can anyone from apple help with this? i can't request a code level support because the app size it bigger than the 50mb limit. Any suggestions in getting help?