摘要:
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
一个处女座的程序猿
阅读(602)
评论(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
一个处女座的程序猿
阅读(1755)
评论(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
一个处女座的程序猿
阅读(813)
评论(0)
推荐(0)

浙公网安备 33010602011771号