File size: 1,426 Bytes
8261ee3
cd72b8d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54eddc8
cd72b8d
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

# Steps to Run the Model

1. **Clone the Repository**:  
   Open your command line interface (CLI) and clone the repository using:
   ```bash
   git clone https://huggingface.co/webslate/transactify
   ```

2. **Create the Virtual Environment**:  
   Navigate to the project directory and create a virtual environment:
   ```bash
   python -m venv transactify_venv
   ```

3. **Activate the Virtual Environment**:  
   To activate the virtual environment, follow these steps:
   - Open your command line interface (CLI).
   - Type the following commands:
     ```bash
     cd transactify_venv
     cd Scripts
     activate
     ```

4. **Install Required Libraries**:  
   After activating the virtual environment, install the necessary libraries by typing:
   ```bash
   pip install -r requirements.txt
   ```

5. **Run the Data Preprocessing Code**:  
   Execute the data preprocessing script by typing:
   ```bash
   python data_preprocessing.py
   ```

6. **Run the LSTM Model Code**:  
   Train the LSTM model by executing:
   ```bash
   python LSTM_model.py
   ```

7. **Generate the H5 File**:  
   After training, you can generate the model file (`transactify.h5`).

8. **Run the Prediction Code**:  
   To make predictions using the trained model, type:
   ```bash
   python main.py
   ```

Following these steps will set up and run the Transactify model for predicting transaction categories based on descriptions.