Model.aic_createnew#

Model.aic_createnew(option, value)#

Creates a new classifier or label for classification process.

Parameters:
  • option (hwString) –

    Valid values are:

    Classifier - New folder is created in project directory. All files related to the classifier are stored in this folder. A classifier contains user-provided label information to train machine learning models.

    Label - New label creation is initialized and it is finalized upon successful addition of parts to the new label.

  • value (hwString) – Name of the new classifier or the new label.

Example#

Create ShapeAICar folder in project directory#
import hm
import hm.entities as ent

model = hm.Model()

model.aic_createnew(option="Classifier", value="ShapeAICar")
Create a new label#
import hm
import hm.entities as ent

model = hm.Model()

model.aic_createnew(option="Label", value="DoorAssembly")