Spaces:
Runtime error
Runtime error
Commit
·
316c194
1
Parent(s):
ad32c72
add classes
Browse files
app.py
CHANGED
@@ -71,9 +71,12 @@ def titanic(Pclass, Sex, Age, SibSp, Parch, Fare, Cabin, Embarked):
|
|
71 |
|
72 |
|
73 |
inputs = []
|
74 |
-
numericalInputs = ["
|
75 |
-
worthlessInputs = ["
|
76 |
-
categoricalInputs = ["
|
|
|
|
|
|
|
77 |
|
78 |
for feature in featureLabels:
|
79 |
if feature in numericalInputs:
|
|
|
71 |
|
72 |
|
73 |
inputs = []
|
74 |
+
numericalInputs = ["Age", "SibSp", "Parch", "Fare", "Pclass"]
|
75 |
+
worthlessInputs = ["Name", "Ticket"]
|
76 |
+
categoricalInputs = ["Sex", "Embarked", "Cabin"]
|
77 |
+
|
78 |
+
featureLabels = ["Pclass", "Name", "Sex", "Age", "SibSp",
|
79 |
+
"Parch", "Ticket", "Fare", "Cabin", "Embarked"]
|
80 |
|
81 |
for feature in featureLabels:
|
82 |
if feature in numericalInputs:
|