(x_outliers) #separate the two features and use it to plot the data F1 = X_train[:,[0]].reshape(-1,1) F2 = X_train[:,[1]].reshape(-1,1) # create a meshgrid xx , yy = np.meshgrid(np.linspace(-10, 10, 200), np.linspace(-10, 10, 200)) # scatter plot plt.scatter(...
(x_max/x_min)/100xx,yy=np.meshgrid(np.arange(x_min,x_max,h),np.arange(y_min,y_max,h))#import the SVM modelfromsklearnimportsvm C=1.0# SVM regularization parametersvc=svm.SVC(kernel='linear').fit(X_sub,y)#play with this, change kernel to rbfplt.subplot(1,1,1)Z=svc.predict...
It’s possible that executing your Python code in the Jupyter notebook caused you to experience this strange problem of the “iopub data rate exceeded” error. We will be seeing why this error occurs, what is the source of this error, and how we can pull ourselves out of this error. Co...