cheeka84 commited on
Commit
98ee3cf
·
verified ·
1 Parent(s): 4df82c7

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. sales_prediction_model_v1_0.joblib +2 -2
app.py CHANGED
@@ -47,7 +47,7 @@ def predict_sales():
47
  input_data = pd.DataFrame([sample])
48
 
49
  # Make prediction (get log_sales)
50
- predictions = model.predict(input_data)[0]
51
 
52
  # Round predictions
53
  predicted_sales = round(float(predictions), 2)
@@ -85,7 +85,7 @@ def sales_price_batch():
85
  # input_data_transformed = preprocessor.transform(input_data_batch)
86
  # predictions = model.predict(input_data_transformed)
87
 
88
- predictions = model.predict(input_data_batch) # Assuming already preprocessed or numeric
89
 
90
  # Round predictions
91
  predicted_sales = [round(float(x), 2) for x in predictions]
 
47
  input_data = pd.DataFrame([sample])
48
 
49
  # Make prediction (get log_sales)
50
+ predictions = np.log(model.predict(input_data)[0])
51
 
52
  # Round predictions
53
  predicted_sales = round(float(predictions), 2)
 
85
  # input_data_transformed = preprocessor.transform(input_data_batch)
86
  # predictions = model.predict(input_data_transformed)
87
 
88
+ predictions = np.log(model.predict(input_data_batch)) # Assuming already preprocessed or numeric
89
 
90
  # Round predictions
91
  predicted_sales = [round(float(x), 2) for x in predictions]
sales_prediction_model_v1_0.joblib CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f73bfed3c2961bf373f589e120f7ed1696151a0db1f5b165774586ebeaa28416
3
- size 3121176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c80f31f23cac2e4218afe9f62e34faf4fb53aa769225321333aa414ffe8fb055
3
+ size 48300698