saveModel#

swordfish.function.saveModel()#

Save the specifications of a trained model to a file on disk.

参数:
  • model (Constant) -- A dictionary of the specifications of a prediction model. It is generated by functions such as randomForestClassifier and randomForestRegressor.

  • file (Constant) -- A string indicating the absolute path and name of the output file.