我使用了rxNeuralNet並獲得了很好的結果。我想保存它以備將來使用。如何保存rxNeuralNet(mlModel)的輸出以供重用?
nnOutput <- rxNeuralNet(formula = savedFormula, data = inputData,
type = "regression", acceleration = "sse")
我可以在rxPredict中使用nnOutput,並驗證我的答案。
rxPredict(nnOutput, data = testSet, outData = tempXDF)
現在我想保存輸出,以便稍後重用。 (培訓時間並不重要。)我似乎無法找到任何實例。我試過了:
rxDataStep(inData = nnOutput, outFile = tempXDF, overwrite = TRUE)
rxImport(inData = nnOutput, outFile = tempXDF, overwrite = TRUE)
write.csv(nnOutput, file = "c:\\temp\\temp.csv")
有什麼建議嗎?
這正是我需要的。謝謝。 –