Per the SVC documentation, it looks like you need to change how you construct the SVC:
model = SVC(probability=True)
and then use the predict_proba method:
class_probabilities = model.predict_proba(sub_main)
Per the SVC documentation, it looks like you need to change how you construct the SVC:
model = SVC(probability=True)
and then use the predict_proba method:
class_probabilities = model.predict_proba(sub_main)