Srikanthgoud7 commited on
Commit
e3d94d9
·
verified ·
1 Parent(s): d4f670f

Update pages/4 Feature Engineering.py

Browse files
Files changed (1) hide show
  1. pages/4 Feature Engineering.py +16 -16
pages/4 Feature Engineering.py CHANGED
@@ -9,10 +9,10 @@ st.markdown("""
9
  To ensure the dataset was machine-learning ready, the following preprocessing steps were applied:
10
 
11
  - **Encoding**:
12
- - Categorical variables like `Project_Type`, `Methodology_Used`, `Team_Experience_Level`, and `Requirement_Stability` were converted into numerical format using **OrdinalEncoder**, depending on model compatibility.
13
 
14
  - **Scaling**:
15
- Continuous variables such as `Project_Budget_USD`, `Complexity_Score`, and `Current_Phase_Duration_Months` were normalized using **StandardScaler** to bring features to the same scale and improve model convergence.
16
 
17
 
18
  - **Feature Harmonization**:
@@ -24,17 +24,17 @@ To ensure the dataset was machine-learning ready, the following preprocessing st
24
 
25
  Following analysis and correlation review, these 11 features were selected for model training:
26
 
27
- - `Project_Type`
28
- - `Team_Size`
29
- - `Project_Budget_USD`
30
- - `Estimated_Timeline_Months`
31
- - `Complexity_Score`
32
- - `Stakeholder_Count`
33
- - `Methodology_Used`
34
- - `Team_Experience_Level`
35
- - `External_Dependencies_Count`
36
- - `Requirement_Stability`
37
- - `Current_Phase_Duration_Months`
38
 
39
  These features represent a strong balance between environmental, structural, and planning attributes of the project.
40
 
@@ -42,9 +42,9 @@ These features represent a strong balance between environmental, structural, and
42
 
43
  ### 🚫 Dropped Features:
44
 
45
- - `Unnamed: 0`: Index column without predictive significance
46
- - `Past_Similar_Projects`: Removed due to data filtering and possible outliers
47
- - `Resource_Availability`, `Technical_Debt_Level`, `Seasonal_Risk_Factor`: Removed during feature reduction (assumed from earlier steps)
48
 
49
  The final feature set was used to train the **KNearestNeighbors Classifier**, enabling reliable classification of projects into **Low**, **Medium**, **High**,**Critical**.
50
  """)
 
9
  To ensure the dataset was machine-learning ready, the following preprocessing steps were applied:
10
 
11
  - **Encoding**:
12
+ - Categorical variables like **Project_Type**, **Methodology_Used**, **Team_Experience_Level**, and **Requirement_Stability** were converted into numerical format using **OrdinalEncoder**, depending on model compatibility.
13
 
14
  - **Scaling**:
15
+ Continuous variables such as **Project_Budget_USD**, **Complexity_Score**, and **Current_Phase_Duration_Months** were normalized using **StandardScaler** to bring features to the same scale and improve model convergence.
16
 
17
 
18
  - **Feature Harmonization**:
 
24
 
25
  Following analysis and correlation review, these 11 features were selected for model training:
26
 
27
+ - **Project_Type**
28
+ - **Team_Size**
29
+ - **Project_Budget_USD**
30
+ - **Estimated_Timeline_Months**
31
+ - **Complexity_Score**
32
+ - **Stakeholder_Count**
33
+ - **Methodology_Used**
34
+ - **Team_Experience_Level**
35
+ - **External_Dependencies_Count**
36
+ - **Requirement_Stability**
37
+ - **Current_Phase_Duration_Months**
38
 
39
  These features represent a strong balance between environmental, structural, and planning attributes of the project.
40
 
 
42
 
43
  ### 🚫 Dropped Features:
44
 
45
+ - **Unnamed: 0**: Index column without predictive significance
46
+ - **Past_Similar_Projects**: Removed due to data filtering and possible outliers
47
+ - **Resource_Availability**, **Technical_Debt_Level**, **Seasonal_Risk_Factor**: Removed during feature reduction (assumed from earlier steps)
48
 
49
  The final feature set was used to train the **KNearestNeighbors Classifier**, enabling reliable classification of projects into **Low**, **Medium**, **High**,**Critical**.
50
  """)