Spaces:
Runtime error
Runtime error
ayberkuckun
commited on
Commit
·
ac3eb57
1
Parent(s):
930e0ac
extend
Browse files
app.py
CHANGED
|
@@ -65,9 +65,9 @@ def titanic(pclass, title, sex, age, sibsp, parch, ticket, fare, cabin, embarked
|
|
| 65 |
input_list.append(int(ticket))
|
| 66 |
input_list.append(fare)
|
| 67 |
input_list.append(sibsp + parch)
|
| 68 |
-
input_list.
|
| 69 |
input_list.extend(get_title_feature(title))
|
| 70 |
-
input_list.
|
| 71 |
|
| 72 |
# 'res' is a list of predictions returned as the label.
|
| 73 |
res = model.predict(np.asarray(input_list).reshape(1, -1))
|
|
|
|
| 65 |
input_list.append(int(ticket))
|
| 66 |
input_list.append(fare)
|
| 67 |
input_list.append(sibsp + parch)
|
| 68 |
+
input_list.extend(get_embarked_feature(embarked))
|
| 69 |
input_list.extend(get_title_feature(title))
|
| 70 |
+
input_list.extend(get_cabin_feature(cabin))
|
| 71 |
|
| 72 |
# 'res' is a list of predictions returned as the label.
|
| 73 |
res = model.predict(np.asarray(input_list).reshape(1, -1))
|