파이썬/Numpy

파이썬/Numpy

[Numby]Numpy 소수점 표현에서 e 안보이게 하기

1. 출처 https://numpy.org/doc/stable/reference/generated/numpy.set_printoptions.html numpy.set_printoptions — NumPy v1.25 Manual If True, always print floating point numbers using fixed point notation, in which case numbers equal to zero in the current precision will print as zero. If False, then scientific notation is used when absolute value of the smallest number is < 1e-4 or the numpy.org 2. 코..

파이썬/Numpy

[Python] AttributeError: 'NoneType' object has no attribute 'split'

1. 증상 Numpy 와 Kmeans를 같이 사용하면 다음과 같은 오류가 발생하였다.. import numpy as np from sklearn.cluster import KMeans allLocations = np.array([[1, 2], [1, 4], [1, 0], [10, 2], [10, 4], [10, 0]]) kmeanModel = KMeans(n_clusters=2, random_state=0) kmeanModel.fit(allLocations) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[40], l..

easysheep
'파이썬/Numpy' 카테고리의 글 목록