完成作业

This commit is contained in:
2509165035
2026-04-30 15:54:49 +08:00
parent fde39bd3bc
commit 5bdfc51b3c
10 changed files with 7769 additions and 2 deletions

BIN
35.xls Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -27,8 +27,8 @@ BATCH_SIZE = 64 # 批次大小
USE_CLASS_WEIGHT = True # True=启用类别权重, False=不启用(对比用) USE_CLASS_WEIGHT = True # True=启用类别权重, False=不启用(对比用)
# 权重计算公式: n_samples / (n_classes * n_class_i) # 权重计算公式: n_samples / (n_classes * n_class_i)
# 正面评论多所以权重小,负面评论少所以权重大 # 正面评论多所以权重小,负面评论少所以权重大
CLASS_WEIGHT_POS = 0.73 # 正面类权重(自动计算) CLASS_WEIGHT_POS = 0.50 # 正面类权重(自动计算)
CLASS_WEIGHT_NEG = 1.58 # 负面类权重(自动计算) CLASS_WEIGHT_NEG = 0.66 # 负面类权重(自动计算)
# ==================== 实验相关 ==================== # ==================== 实验相关 ====================
RUN_COMPARISON = False # True=运行对比实验, False=运行单个模型 RUN_COMPARISON = False # True=运行对比实验, False=运行单个模型

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.