|
|
|
|
@ -71,12 +71,12 @@ def generate_sample_data(data_size: int, save_data: bool = False, save_name: str |
|
|
|
|
def predict_with_model(model): |
|
|
|
|
yib = float(input("How many years in business?:\t")) |
|
|
|
|
if yib == "": return False |
|
|
|
|
sbss = int(input("What is your SBSS?:\t")) |
|
|
|
|
sbss = int(input("What is your SBSS?:\t\t")) |
|
|
|
|
if sbss == "": return False |
|
|
|
|
model_pred = model.predict([[yib,sbss]]) == 1 |
|
|
|
|
model_pred = model.predict([[yib,sbss]])[0] == 1 |
|
|
|
|
actual = eval_approval(sbss, yib) == 1 |
|
|
|
|
print(f"The model predicts:\t{model_pred}\nThe rules say:\t{actual}.") |
|
|
|
|
print(f"The model was {'correct' if model_pred == actual else 'incorrect'}\n") |
|
|
|
|
print(f"The model predicts:\t\t{model_pred}\nThe rules say:\t\t\t{actual}.") |
|
|
|
|
print(f"The model was {'correct' if model_pred == actual else 'incorrect'}.\n") |
|
|
|
|
return True |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|