深度學習之PyTorch---- 多項式線性迴歸

""" 多項式迴歸 """ def make_features(x): """Builds features a matrix with columns [x,x^2,x^3]""" x = x.unsqueeze(1) return torch.cat([x ** i for i in range(1,4)],1) def f(x): """Approxima
相關文章
相關標籤/搜索