Update app.py
Browse files
app.py
CHANGED
@@ -29,32 +29,26 @@ def encode_categorical_columns(df):
|
|
29 |
return df
|
30 |
|
31 |
# Define the prediction function
|
32 |
-
def predict_performance(Location,
|
33 |
-
Faculty, Source, visited_college_for_inquiry_only, attended_event_name,
|
34 |
-
attended_any_events, Presenter, visited_with_parents):
|
35 |
|
36 |
# Debug print 1: Print all input values
|
37 |
print("\nInput Values:")
|
38 |
print(f"Location: {Location}")
|
39 |
-
print(f"
|
40 |
print(f"GPA: {GPA}")
|
41 |
print(f"Year: {Year}")
|
42 |
-
print(f"
|
43 |
print(f"Faculty: {Faculty}")
|
44 |
print(f"Source: {Source}")
|
45 |
-
print(f"Visited for
|
46 |
-
print(f"Event
|
47 |
-
print(f"Attended
|
48 |
print(f"Presenter: {Presenter}")
|
49 |
print(f"Visited with parents: {visited_with_parents}")
|
50 |
|
51 |
-
input_data = [
|
52 |
-
Faculty, Source, visited_college_for_inquiry_only, attended_event_name,
|
53 |
-
attended_any_events, Presenter, visited_with_parents]]
|
54 |
|
55 |
-
feature_names = ["Location", "
|
56 |
-
"Faculty", "Source", "visited_college_for_inquiry_only", "attended_event_name",
|
57 |
-
"attended_any_events", "Presenter", "visited_with_parents"]
|
58 |
|
59 |
input_df = pd.DataFrame(input_data, columns=feature_names)
|
60 |
|
|
|
29 |
return df
|
30 |
|
31 |
# Define the prediction function
|
32 |
+
def predict_performance(Location,Course,College,Faculty,Source,Event,Presenter,Visited Parent,Visited College for Inquiry,Attended Any Event,College Fee,GPA,Year):
|
|
|
|
|
33 |
|
34 |
# Debug print 1: Print all input values
|
35 |
print("\nInput Values:")
|
36 |
print(f"Location: {Location}")
|
37 |
+
print(f"College Fee: {College_Fee}")
|
38 |
print(f"GPA: {GPA}")
|
39 |
print(f"Year: {Year}")
|
40 |
+
print(f"Course: {Course_Interested}")
|
41 |
print(f"Faculty: {Faculty}")
|
42 |
print(f"Source: {Source}")
|
43 |
+
print(f"Visited College for Inquiry: {visited_college_for_inquiry_only}")
|
44 |
+
print(f"Event : {attended_event_name}")
|
45 |
+
print(f"Attended Any vents: {ttended any_events}")
|
46 |
print(f"Presenter: {Presenter}")
|
47 |
print(f"Visited with parents: {visited_with_parents}")
|
48 |
|
49 |
+
input_data = [Location,Course,College,Faculty,Source,Event,Presenter,Visited Parent,Visited College for Inquiry,Attended Any Event,College Fee,GPA,Year
|
|
|
|
|
50 |
|
51 |
+
feature_names = ["Location", "Course", "College", "Faculty", "Source", "Event", "Presenter", "Visited Parent", "Visited College for Inquiry", "Attended Any Event", "College Fee", "GPA", "Year"]
|
|
|
|
|
52 |
|
53 |
input_df = pd.DataFrame(input_data, columns=feature_names)
|
54 |
|