机器学习
Lynn_mg
这个作者很懒,什么都没留下…
展开
-
AttributeError: 'Series' object has no attribute 'reshape'
AttributeError: ‘Series’ object has no attribute ‘reshape’ 错误代码: from sklearn.preprocessing import StandardScaler data['normAmount'] = StandardScaler().fit_transform(data['Amount'].reshape(-1, 1)) 解决...原创 2018-11-13 16:54:56 · 831 阅读 · 0 评论 -
Python 实现Canopy算法
代码 import math import random import numpy as np from datetime import datetime from pprint import pprint as p import matplotlib.pyplot as plt # 随机生成一个500个二维 [0,1)平面点 dataset = np.random.rand(500, 2) #...原创 2019-06-10 18:25:04 · 2498 阅读 · 2 评论