更新import的顺序

This commit is contained in:
jiangzhonglian
2017-07-10 12:56:20 +08:00
parent be26414de2
commit ea3231b6b4
2 changed files with 5 additions and 8 deletions

View File

@@ -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__)

View File

@@ -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,