Python TypeError: __init__() got an unexpected keyword argument 'decision_function_shape'
Your snippet is almost exactly the same as scikit-learn's example (except for kernel='rbf' and probability=False) and works fine under version 0.18, provided the needed imports are present.

Update: the version of scikit learn used is 0.16.1, and in that version, SVC did not have as many arguments as in 0.18, as per the docs. You should therefore use something like this:


model = SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0, degree=3,
            gamma=0.0, kernel='linear', max_iter=-1, probability=True,
            random_state=None, shrinking=True, tol=0.001, verbose=False)


For upgrading scikit-learn to 0.18, (assuming you use pip) do this:


pip install scikit-learn==0.18 --force-reinstall