Package com.logicaldoc.ai.serializer
Class FileSerializer
java.lang.Object
com.logicaldoc.ai.serializer.Serializer
com.logicaldoc.ai.serializer.FileSerializer
An
Serializer that uses plain files- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a reference (path, id or other) to a file used by the modelloadTrainedModel(AIModel<?, ?> model) loadTrainingData(AIModel<?, ?> model) voidsaveTrainedModel(AIModel<?, ?> model, InputStream data) Saves the trained model, the input stream gets closedvoidsaveTrainingData(AIModel<?, ?> model, InputStream data) Saves the training data set, the input stream gets closedMethods inherited from class com.logicaldoc.ai.serializer.Serializer
exportModel, importModel
-
Constructor Details
-
FileSerializer
public FileSerializer()
-
-
Method Details
-
loadTrainingData
- Specified by:
loadTrainingDatain classSerializer- Throws:
IOException
-
loadTrainedModel
- Specified by:
loadTrainedModelin classSerializer- Throws:
IOException
-
saveTrainingData
Description copied from class:SerializerSaves the training data set, the input stream gets closed- Specified by:
saveTrainingDatain classSerializer- Parameters:
model- The modeldata- The data to save- Throws:
IOException- Error storing the training data
-
saveTrainedModel
Description copied from class:SerializerSaves the trained model, the input stream gets closed- Specified by:
saveTrainedModelin classSerializer- Parameters:
model- The modeldata- The data to save- Throws:
IOException- Error storing the model
-
getFile
Description copied from class:SerializerRetrieves a reference (path, id or other) to a file used by the model- Specified by:
getFilein classSerializer- Parameters:
model- The modelsuffix- The file suffix- Returns:
- the file's reference
- Throws:
IOException- Error retrieving the file
-