def writeModel(fileName: str): global model # Start creating the JSON directly from runtime model strJSON = Serializer.toJSON(model)
def loadModel(fileName: str): """ Read the model from disk """ global model model = Serializer.fromJSON(fileName)