simran0608 commited on
Commit
1107b8f
1 Parent(s): 3cb6066

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -8,6 +8,22 @@ from data_preparation import preprocess_data
8
  from clustering import perform_clustering, plot_clusters
9
  from feature_selection import select_features_pca, select_features_rfe, select_features_rf
10
  from sklearn.preprocessing import StandardScaler
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  def load_data(dataset_choice):
13
  if dataset_choice == "Insurance":
@@ -51,6 +67,8 @@ def display_dataset_selection():
51
  st.write("Number of columns:", data.shape[1])
52
  st.write("First five rows of the data:")
53
  st.write(data.head())
 
 
54
  return data
55
  # Function to display Modeling & Evaluation section
56
  def display_modeling_evaluation():
 
8
  from clustering import perform_clustering, plot_clusters
9
  from feature_selection import select_features_pca, select_features_rfe, select_features_rf
10
  from sklearn.preprocessing import StandardScaler
11
+ feature_descriptions = {
12
+ "CustID": "Unique identifier for each customer.",
13
+ "FirstPolYear": "Year when the customer first bought an insurance policy.",
14
+ "BirthYear": "Birth year of the customer, used to calculate age.",
15
+ "EducDeg": "Highest educational degree obtained by the customer.",
16
+ "MonthSal": "Monthly salary of the customer. (Numerical, float64)",
17
+ "GeoLivArea": "Geographical area where the customer lives.",
18
+ "Children": "Number of children the customer has.",
19
+ "CustMonVal": "Total monetary value of the customer to the company.",
20
+ "ClaimsRate": "Rate at which the customer files insurance claims.",
21
+ "PremMotor": "Premium amount for motor insurance.",
22
+ "PremHousehold": "Premium amount for household insurance.",
23
+ "PremHealth": "Premium amount for health insurance.",
24
+ "PremLife": "Premium amount for life insurance.",
25
+ "PremWork": "Premium amount for work insurance."
26
+ }
27
 
28
  def load_data(dataset_choice):
29
  if dataset_choice == "Insurance":
 
67
  st.write("Number of columns:", data.shape[1])
68
  st.write("First five rows of the data:")
69
  st.write(data.head())
70
+ if dataset_choice=="Insurance":
71
+ st.write(feature_descriptions)
72
  return data
73
  # Function to display Modeling & Evaluation section
74
  def display_modeling_evaluation():