molinari135 commited on
Commit
cdceec8
·
verified ·
1 Parent(s): 33cd450

Delete models

Browse files
Files changed (3) hide show
  1. models/README.md +0 -85
  2. models/scaler.pkl +0 -3
  3. models/svm.pkl +0 -3
models/README.md DELETED
@@ -1,85 +0,0 @@
1
- # Model Card for Product Return Prediction
2
-
3
- ## model details
4
-
5
- - **person or organization developing model**: team product-return-prediction
6
- - **model date**: 24/11/2024
7
- - **model version**: v1.4
8
- - **model type**: Support Vector Machine
9
-
10
- <!-- algorithm description -->
11
- This model is a **Support Vector Machine** classifier designed to predict whether a product will be returned or not, based on various product and transaction features. Hyperparameters (C, kernel type and gamma) are chosen using a grid search, with a 10-fold cross validation.
12
-
13
- ## intended use
14
-
15
- ### primary intended uses
16
-
17
- <!-- description of the model's use -->
18
- The purpose of the model is to assist e-commerce owners (Armani) in identifying possible returns among their purchases in order to reorganize inventories to optimize product handling and transportation costs
19
-
20
- ### primary intended users
21
-
22
- <!-- description of the users -->
23
- The model was developed for Armani. Specifically, the purpose is to support professional figures involved in logistics, product management, and marketing
24
-
25
- <!-- ### out-of scope use cases -->
26
-
27
- ## factors
28
-
29
- ### relevant factors
30
-
31
- <!-- factors to consider -->
32
- Some factors to be considered that involve the model are the following:
33
-
34
- - **product features**: characteristics like model, fabric, colour, composition, and product category may have a significant impact on the likelihood of a product being returned
35
- - **imbalanced classes**: the class imbalance is a relevant factor that may affect the model's ability to predict the minority class (returns) accurately
36
-
37
- ### decision thresholds
38
-
39
- <!-- description of selected thresholds -->
40
- The default decision threshold for the SVM model is 0.5, where probabilities greater than or equal to 0.5 indicate a "returned" prediction, and probabilities below 0.5 indicate "not returned."
41
-
42
- ## Train and Test data
43
-
44
- ### dataset description
45
-
46
- - **dataset**: *German Sales 2023 EA*
47
-
48
- the model was trained and tested on this dataset, following appropriate splitting and pre-processing steps.
49
-
50
- ### split
51
-
52
- Dataset splitting is as follows:
53
- - **training**: 80%
54
- - **validation and test**: 20%
55
-
56
- the splitting is performed by using the corresponding sklearn function. The chosen random state is 42.
57
-
58
- ### pre-processing
59
-
60
- To be adapted to the binary classification task, and further adapted to a numerical model such as SVM, the model underwent an important pre-processing phase. Pre-processing steps are the following:
61
-
62
- 1. Dataset conversion from Excel to TSV
63
- 2. Specific columns removal from dataframe
64
- 3. Train and test data splitting
65
- 4. Train and save scaler
66
- 5. Scaling data with a pre-trained scaler
67
- 6. Target encoding of categorical columns
68
- 7. Preparation of inventory with sales data
69
- 8. Population of missing values
70
- 9. Calculation and application of return percentages by color
71
- 10. Final cleaning and processing
72
-
73
- ## Quantitative analysis
74
-
75
- | | PRECISION | RECALL | F1-SCORE | Support |
76
- |-----------|-----------|-----------|-----------|-----------|
77
- | No return | 0.95 | 0.95 | 0.95 | 2086 |
78
- | Return | 0.89 | 0.90 | 0.89 | 960 |
79
- | Accuracy | | | |0.93 |
80
-
81
-
82
- <!-- ### unitary results -->
83
-
84
- <!-- ### intersectional results -->
85
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
models/scaler.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:562c4a2400faed040f18d6cbcbccfbafaf9a1c872f01f502fb66f62f4744022e
3
- size 1080
 
 
 
 
models/svm.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:dba8282de3b3bfe625ad9a999f996843dc7a05a99e94198d2d5ccbef676853ed
3
- size 254026