This repository contains a project that focuses on predicting the price of a product based on various features such as name, description, category, and brand name. The project utilizes a GRU-based RNN (Recurrent Neural Network) for price prediction and employs an SVM (Support Vector Machine) for brand name inference.
The goal of this project is to develop a predictive model that can estimate the price of a product given its relevant attributes. The attributes used for prediction include the product's name, description, category, and brand name. The project involves two main components: a GRU-based RNN for price prediction and an SVM for brand name inference.
The repository is structured as follows:
- .gitignore
- README.md
- gru_model.py
- predictor_class.py
- requirements.txt
- svm_model.ipynb
-
The
.gitignorefile specifies the files and directories that should be ignored by the Git version control system. -
The
README.mdfile provides an overview of the project, its features, and instructions on how to use the repository. -
The
gru_model.pyfile contains the implementation of the GRU-based RNN model for price prediction. This script defines the architecture of the model, trains it on the provided dataset, and saves the trained model for later use. -
The
predictor_class.pyfile includes the class definition for the predictor. This class encapsulates the functionality of loading the trained models and making predictions based on the input data. -
The
requirements.txtfile lists the dependencies required to run the project. You can install these dependencies using thepip install -r requirements.txtcommand. -
The
svm_model.ipynbnotebook demonstrates the steps for training and evaluating the SVM model for brand name inference. It utilizes the dataset from the provided Mercari link.
To get started with this project, follow these steps:
-
Clone this repository to your local machine using the command:
git clone https://github.com/your-username/product-price-prediction.git -
Install the required dependencies by running:
pip install -r requirements.txt -
Open the
svm_model.ipynbnotebook to train and evaluate the SVM model for brand name inference using the provided dataset. -
Use the
gru_model.pyscript to train the GRU-based RNN model for price prediction. Adjust the script according to your requirements and run it to train the model. -
Once the models are trained, you can utilize the
predictor_class.pyscript to load the trained models and make predictions based on the input data.
Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, please submit an issue or a pull request.
This project is licensed under the MIT License.
We would like to acknowledge the authors of the original dataset from the Mercari website for providing the data used in this project.