-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
感谢开源,我在学习您的_插值数据_随机森林方法时有报错,可以帮忙看一下问题怎么解决吗,十分感谢
先是报错这个
C:\Users\Administrator\AppData\Local\Temp\ipykernel_9988\3054541543.py:6: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
rf_model.fit(x_train, y_train)
NameError Traceback (most recent call last)
Cell In[8], line 6
4 colors = ["#33A02C", "#B2DF8A", "#FDBF6F", "#1F78B4", "#999999", "#E31A1C"]
5 # ax.scatter(clean_data['longitude'], clean_data['latitude'], c='red')
----> 6 prov_gpd_valid.boundary.plot(ax=ax, color='white')
7 # ax_im_bar = ax.contourf(grid_x, grid_y, predict_cubic,cmap=cm.coolwarm) #mpl.colors.LinearSegmentedColormap.from_list("mypalette", colors, N=1000)
9 ax_im_bar = ax.imshow(predict_matrix, origin='lower',
10 extent=(minx, maxx,miny, maxy),
11 cmap=mpl.colors.LinearSegmentedColormap.from_list("mypalette", colors, N=1000))
NameError: name 'prov_gpd_valid' is not defined
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

