mirror of
https://github.com/apachecn/ailearning.git
synced 2026-02-13 23:35:28 +08:00
更新import的顺序
This commit is contained in:
@@ -9,9 +9,10 @@ SVM:最大边距分离超平面
|
||||
《机器学习实战》更新地址:https://github.com/apachecn/MachineLearning
|
||||
sklearn-SVM译文链接: http://cwiki.apachecn.org/pages/viewpage.action?pageId=10031359
|
||||
"""
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
from sklearn import svm
|
||||
|
||||
print(__doc__)
|
||||
|
||||
|
||||
|
||||
@@ -4,22 +4,18 @@
|
||||
"""
|
||||
Created on 2017-07-10
|
||||
Updated on 2017-07-10
|
||||
@author: 片刻
|
||||
@author: 片刻/Noel Dawe
|
||||
《机器学习实战》更新地址:https://github.com/apachecn/MachineLearning
|
||||
sklearn-AdaBoost译文链接: http://cwiki.apachecn.org/pages/viewpage.action?pageId=10813457
|
||||
"""
|
||||
print(__doc__)
|
||||
|
||||
# Author: Noel Dawe <noel.dawe@gmail.com>
|
||||
#
|
||||
# License: BSD 3 clause
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
from sklearn.datasets import make_gaussian_quantiles
|
||||
from sklearn.ensemble import AdaBoostClassifier
|
||||
from sklearn.tree import DecisionTreeClassifier
|
||||
|
||||
print(__doc__)
|
||||
|
||||
# Construct dataset
|
||||
X1, y1 = make_gaussian_quantiles(cov=2.,
|
||||
n_samples=200, n_features=2,
|
||||
|
||||
Reference in New Issue
Block a user