Python, Data Science, Machine Learning, Technology, Finance.
models. svc = SVC(probability=True) svc.fit(X_train, y_train) y_pred_val = svc.predict(X_val) print(svc.predict_proba(X_val.loc[[1]])) OUTPUT: [[0.88146797 0.11853203]] Let’s say we have a working model that doesn’t give us the class probabilities. In such a scenario, we can leverage probability