MemoryError when running Numpy Meshgrid

前端 未结 3 734
小蘑菇
小蘑菇 2020-12-15 13:51

I have 8823 data points with x,y coordinates. I\'m trying to follow the answer on how to get a scatter dataset to be represented as a heatmap but when I go

3条回答
  •  无人及你
    2020-12-15 14:43

    When you call np.meshgrid for scatter figure, you need to normalize your data if it is too large to process, try this module

        # Feature Scaling
    from sklearn.preprocessing import StandardScaler
    st = StandardScaler()
    X = st.fit_transform(X)
    

提交回复
热议问题