1 Star 0 Fork 0

SoppyLzz/decision_tree_recurrence

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.py 702 Bytes
一键复制 编辑 原始数据 按行查看 历史
SoppyLzz 提交于 2024-11-30 19:02 +08:00 . feat: realize decision tree based on phenology
from enum import Enum
# NoData
NoData=-999
# mask part
mask_path="../dataset/mid/mask_{}.npy"
# ndvi part
ndvi_dir="../dataset/hants46/{}"
ndvi_path="../dataset/hants46/{}/{}"
# dist part
dist_out_npy="../dataset/dist/npy/{}.npy"
dist_out_tif="../dataset/dist/tif/{}.tiff"
# test part
test_path="../dataset/test/new_test.csv"
class Dist(Enum):
Nodata=NoData
Unknown=0
Water=1
Zl=2
Mudflat=3
SG=4
FAM=5
TP=6
Cs=7
class Color(Enum):
Nodata = [NoData, NoData, NoData]
Unknown = [1, 1, 1]
Water = [38, 1, 252]
Mudflat = [202, 144, 143]
TP = [39, 235, 2]
FAM = [248, 0, 253]
Zl = [251, 253, 20]
Cs = [22, 122, 1]
SG = [156, 195, 82]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/SoppyLzz/decision_tree_recurrence.git
git@gitee.com:SoppyLzz/decision_tree_recurrence.git
SoppyLzz
decision_tree_recurrence
decision_tree_recurrence
master

搜索帮助