实战三十四:基于机器学习lightgbm多波段遥感影像可视化分类实战 完整代码数据 可直接运行

直接看数据与结果:本博客付完整的代码数据----

导入模块

In [1]:

#!pip install lightgbm
import rasterio as rio
import lightgbm as lgb
import pandas as pd
import seaborn as sns
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import classification_report, accuracy_score, confusion_matrix
from matplotlib.colors import ListedColormap
from glob import glob
from scipy.io import loadmat
import earthpy.plot as ep
import matplotlib.pyplot as plt

读取数据

In [2]:

# 波段数据
S_sentinel_bands = glob('/home/mw/input/remote1902/data/sundarbans_data/*B?*.tiff')
S_sentinel_bands.sort()
l = []
for i in S_

猜你喜欢

转载自blog.csdn.net/qiqi_ai_/article/details/131582777
今日推荐