adnanaman commited on
Commit
7bee2be
·
verified ·
1 Parent(s): 3ad404e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -1
README.md CHANGED
@@ -83,4 +83,47 @@ classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
83
  # Example usage
84
  product_description = "High-resolution digital camera with 20MP sensor."
85
  result = classifier(product_description)
86
- print(result)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  # Example usage
84
  product_description = "High-resolution digital camera with 20MP sensor."
85
  result = classifier(product_description)
86
+ print(result)
87
+
88
+ #Training Details
89
+ ##Training Data
90
+ The model was trained on an e-commerce dataset that includes various product categories such as CPUs, Digital Cameras, Dishwashers, Fridge Freezers, Microwaves, Mobile Phones, TVs, and Washing Machines. The data was preprocessed by removing duplicates, lowercasing, and tokenizing text.
91
+
92
+ ##Training Procedure
93
+ 1. Preprocessing: Text data was cleaned, lowercased, and tokenized. Product descriptions were truncated to 128 tokens for uniformity.
94
+ 2. Hyperparameters: Fine-tuning was conducted with a learning rate of 2e-5 and batch size of 16 for 3 epochs.
95
+ 3. Training Hardware: The model was trained on a single NVIDIA Tesla V100 GPU for approximately 3 hours.
96
+
97
+ ##Evaluation
98
+ Testing Data, Factors & Metrics
99
+ The model was evaluated on a separate test set of product descriptions, using precision, recall, and F1-score as the evaluation metrics.
100
+
101
+ ##Summary
102
+ The model achieved an overall accuracy of 96.16%, with strong performance across multiple product categories. The F1-scores indicate that the model performs particularly well in the "CPUs" and "Digital Cameras" categories.
103
+
104
+ ##Technical Specifications
105
+ Model Architecture and Objective
106
+ The DistilBERT-ProductClassifier model utilizes the DistilBERT architecture, fine-tuned with a text classification head for e-commerce product categorization tasks.
107
+
108
+ ##Compute Infrastructure
109
+ The model is optimized to run efficiently on CPUs and small GPUs, making it suitable for real-time applications.
110
+
111
+ ##Hardware
112
+ This model requires a minimum of 4GB of RAM for efficient inference, and a modern CPU or basic GPU is recommended.
113
+
114
+ ##Software
115
+ Transformers library: v4.26.0
116
+ Python version: 3.8 or higher
117
+ CUDA [optional]: 10.2 or higher (if running on GPU)
118
+
119
+ ##Citation
120
+ If you use this model, please cite as follows:
121
+
122
+ ```
123
+ @misc{distilbert_product_classifier,
124
+ author = {Adnan AI Labs},
125
+ title = {DistilBERT-ProductClassifier for E-commerce},
126
+ year = {2024},
127
+ url = {https://huggingface.co/Adnan-AI-Labs/DistilBERT-ProductClassifier}
128
+ }
129
+