danupurnomo
commited on
Commit
•
eff5645
1
Parent(s):
0d5bfca
Update README.md
Browse files
README.md
CHANGED
@@ -52,6 +52,24 @@ model_seq = load_model(cached_download(
|
|
52 |
))
|
53 |
```
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
### Transform Inference-Set
|
56 |
```python
|
57 |
new_data_transform = model_pipeline.transform(new_data)
|
|
|
52 |
))
|
53 |
```
|
54 |
|
55 |
+
### Example A New Data
|
56 |
+
```python
|
57 |
+
new_data = {
|
58 |
+
'PassengerId': 1191,
|
59 |
+
'Pclass': 1,
|
60 |
+
'Name': 'Sherlock Holmes',
|
61 |
+
'Sex': 'male',
|
62 |
+
'Age': 30,
|
63 |
+
'SibSp': 0,
|
64 |
+
'Parch': 0,
|
65 |
+
'Ticket': 'C.A.29395',
|
66 |
+
'Fare': 12,
|
67 |
+
'Cabin': 'F44',
|
68 |
+
'Embarked': 'S'
|
69 |
+
}
|
70 |
+
new_data = pd.DataFrame([new_data])
|
71 |
+
```
|
72 |
+
|
73 |
### Transform Inference-Set
|
74 |
```python
|
75 |
new_data_transform = model_pipeline.transform(new_data)
|