上一页 1 ··· 4 5 6 7 8
摘要: import numpy as np import random def genData(numPoints,bias,variance): x = np.zeros(shape=(numPoints,2)) y = np.zeros(shape=(numPoints)) for i in range(0,numPoi... 阅读全文
posted @ 2018-01-07 12:18 一个处女座的程序猿 阅读(567) 评论(0) 推荐(0) 编辑
摘要: from __future__ import print_function from time import time import logging import matplotlib.pyplot as plt from sklearn.cross_validation import train_test_split from sk... 阅读全文
posted @ 2018-01-07 12:02 一个处女座的程序猿 阅读(1744) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import pylab as pl from sklearn import svm # we create 40 separable points #np.random.seed(0) X = np.r_[np.random.randn(100, 2) - [2, 2], np.random.randn(100, 2) + [2, 2]] ... 阅读全文
posted @ 2018-01-07 11:45 一个处女座的程序猿 阅读(788) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8