随笔分类 - 机器学习
摘要:1 # coding: utf-8 2 3 # In[3]: 4 5 6 import numpy as np 7 import matplotlib.pyplot as plt 8 9 def estimate_coefficients(x, y): 10 # size of the dataset OR number of observations/points 11 n = np.size(
阅读全文
摘要:1 import numpy as np 2 arr = np.array([[2, 3], [5, 4], [9, 6], [4, 7], [8, 1], [7, 2]]) 3 arr.shape 4 5 class KDTree(): 6 def __init__(self): 7 self.value = None 8 self.left = None 9 self.right = None
阅读全文

浙公网安备 33010602011771号