Update README.md
Browse files
README.md
CHANGED
|
@@ -23,11 +23,12 @@ To interact with this model:
|
|
| 23 |
#City_codes range from 0-4, Income and CreditScore fields are also required.
|
| 24 |
user_input = pd.DataFrame({'City_Code': 0, 'Income': 20000, 'CreditScore': 100}, index=[0])
|
| 25 |
|
| 26 |
-
# predict the probability of a loan
|
| 27 |
probas = model.predict_proba(user_input)
|
| 28 |
|
| 29 |
-
# print the output. Will be in the form
|
| 30 |
print(probas)
|
| 31 |
```
|
|
|
|
| 32 |
|
| 33 |
Leave questions in the community section.
|
|
|
|
| 23 |
#City_codes range from 0-4, Income and CreditScore fields are also required.
|
| 24 |
user_input = pd.DataFrame({'City_Code': 0, 'Income': 20000, 'CreditScore': 100}, index=[0])
|
| 25 |
|
| 26 |
+
# predict the probability of a loan [[rejection, approval]] based on inputs
|
| 27 |
probas = model.predict_proba(user_input)
|
| 28 |
|
| 29 |
+
# print the output. Will be in the form [[rejection chance, approval chance]]
|
| 30 |
print(probas)
|
| 31 |
```
|
| 32 |
+
4. Run the script to view the output. Will be in the form \[\[rejection chance, approval chance\]\]
|
| 33 |
|
| 34 |
Leave questions in the community section.
|