一旦我們得到模型的係數,我無法理解如何計算決策邊界。 這裏我指的鏈接:http://scikit-learn.org/stable/auto_examples/svm/plot_svm_margin.html 下面是代碼 # get the separating hyperplane
w = clf.coef_[0]
a = -w[0]/w[1]
xx = np.linspace(-5, 5
我有一組由座標x,y和z組成的數據,我繪製了一條3D線。我想執行Procrustes分析以找出此3D線的形狀與另一個默認形狀之間的相似性。當我嘗試使用任何形狀分析函數或Procrustes函數時,它會在我創建的3D圖形輸入(即「myLine」)上給我一個無效的句柄錯誤。如何將此3D座標圖轉換爲Procrustes或其他函數的可用對象? 3D line created from the coordi