![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
写bug战神
这个作者很懒,什么都没留下…
展开
-
在cifar-10数据集中实现kNN分类
import numpy as np import pickle from tqdm import tqdm class KNNClassifier: def __init__(self, k): self.path = './cifar-10-batches-py/' self.trainX = [] self.trainY = [] self.testX = None self.testY = None原创 2021-07-19 17:42:33 · 691 阅读 · 0 评论 -
python 实现一元线性回归模型
import numpy as np import matplotlib.pyplot as plt def linearRegressionModule(x, a, b): """ 线性回归模块 """ y_hat = a * x + b return y_hat def differentialFunction(x, y, y_hat, a, b, alpha): """ 微分模块 """ n = len(y) su原创 2020-08-01 19:45:02 · 5272 阅读 · 0 评论 -
线性回归预测PM2.5----台大李宏毅机器学习作业1(HW1)
添加链接描述转载 2019-09-12 09:10:06 · 640 阅读 · 1 评论