From 07f7b8acf14ad17cecf9e851d34929d0dd7a8568 Mon Sep 17 00:00:00 2001 From: Jason Jafari Date: Sun, 16 Jun 2024 21:11:10 -0400 Subject: [PATCH] Add more documentation --- DOCS.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/DOCS.md b/DOCS.md index 30d80d1..b6a201c 100644 --- a/DOCS.md +++ b/DOCS.md @@ -230,9 +230,16 @@ def add_constant_columnTransformer(df): df_with_const.insert(0, 'const', 1) return df_with_const +from mlModelSaver import MlModelSaver +mlModelSaverInstance = MlModelSaver({ + "baseRelativePath": "..", + "modelsFolder": "models" +}) + # Export the model using MlModelSaver loadedModel = mlModelSaverInstance.exportModel( - simpleLinearRegressionFittedModel, # the models is fitted and ready for usage + # the models is fitted and ready for usage + simpleLinearRegressionFittedModel, { "modelName": "modelPredictSaleByTemperatureAdvertisingDiscountFit", "description": "Example model predicting sales based on temperature, advertising, and discount.",