摘要:
import numpy as np from astropy.units import Ybarn import math from statsmodels.graphics.tukeyplot import results def computeCorrelation(X, Y): xBar = np.mean(X) yBar = np.mean(Y) SS... 阅读全文
该文被密码保护。 阅读全文
该文被密码保护。 阅读全文
该文被密码保护。 阅读全文
摘要:
import numpy as np from sklearn.datasets import load_digits from sklearn.metrics import confusion_matrix, classification_report from sklearn.preprocessing import LabelBinarizer from NeuralNetwork ... 阅读全文
该文被密码保护。 阅读全文
摘要:
from numpy import genfromtxt from sklearn import linear_model datapath=r"Delivery_Dummy.csv" data = genfromtxt(datapath,delimiter=",") x = data[1:,:-1] y = data[1:,-1] print (x) print (y) m... 阅读全文
该文被密码保护。 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
该文被密码保护。 阅读全文
摘要:
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]] ... 阅读全文
该文被密码保护。 阅读全文