Activity classification from APIs, not from Create ML GUI

Is it possible to work directly with the API for human activity classification *without* using Create ML (which I believe requires Big Sur)? In other words, can I use the APIs directly instead, this was possible with the first iteration of Create ML.
Answered by Engineer in 614206022
Hi,

You can train a model directly via API using the Create ML framework.The newly introduced video based Action Classification template (in the app) and corresponding MLActionClassifier class (in framework) are only available on Big Sur. The motion sensor based Activity Classification template (in the app) and corresponding MLActivityClassifier (in framework) introduced last year are available in Catalina.
The Create ML app ships on both Catalina and Big Sur. The Activity Classification template shipped with Catalina and is supported in Big Sur as well.

New for Big Sur is the Action Classification template. This is supported only on Big Sur and is trainable either via the Create ML app or the Create ML framework on Big Sur only.
Accepted Answer
Hi,

You can train a model directly via API using the Create ML framework.The newly introduced video based Action Classification template (in the app) and corresponding MLActionClassifier class (in framework) are only available on Big Sur. The motion sensor based Activity Classification template (in the app) and corresponding MLActivityClassifier (in framework) introduced last year are available in Catalina.
You will need to use Big Sur to train an action classifier model using the CreateML App or the CreateML Framework.

The action classifier model produced by CreateML is best experienced on iOS 14.0 and Big Sur, in combination with the Vision API's Body Pose Estimation feature.

If you want to provide your own function to compute Body Pose data, you can even use the action classifier model on iOS 13 and macOS Big Sur.
Which API are you talking about specifically? If you mean Vision's body pose API, it is only available since Big Sur. If you mean the Create ML "Action Classification" API, it is also available since Big Sur.

Once you are on Big Sur, you may either use Create ML App (no code needed) to train, or use Create ML framework (you need to write Swift code): https://developer.apple.com/documentation/createml/mlactionclassifier
Activity classification from APIs, not from Create ML GUI
 
 
Q