we need to create the svm classifier object svc_classifier svm_classifier svc(kernel='linear' =cdecision_function_shape='ovr'fit(xyz svc_classifier predict(x_plotz reshape(xx shapeplt figure(figsize=( )plt subplot( plt contourf(xxyyzcmap=plt cm tab alpha= plt scatter( [: ] [: ] =ycmap=plt cm set plt xlabel('sepal length'plt ylabel('sepal width'plt xlim(xx min()xx max()plt title('svc with linear kernel'logistic regression basicallylogistic regression model is one of the members of supervised classification algorithm family logistic regression measures the relationship between dependent variables and independent variables by estimating the probabilities using logistic function hereif we talk about dependent and independent variables then dependent variable is the target class variable we are going to predict and on the other side the independent variables are the features we are going to use to predict the target class in logistic regressionestimating the probabilities means to predict the likelihood occurrence of the event for examplethe shop owner would like to predict the customer who entered into the shop will buy the play station (for exampleor not there would be many features of customer genderageetc which would be observed by the shop