diff --git a/__pycache__/config.cpython-38.pyc b/__pycache__/config.cpython-38.pyc new file mode 100644 index 0000000..2fba8f3 Binary files /dev/null and b/__pycache__/config.cpython-38.pyc differ diff --git a/__pycache__/dataset.cpython-38.pyc b/__pycache__/dataset.cpython-38.pyc new file mode 100644 index 0000000..5044fd2 Binary files /dev/null and b/__pycache__/dataset.cpython-38.pyc differ diff --git a/__pycache__/model_numpy.cpython-38.pyc b/__pycache__/model_numpy.cpython-38.pyc new file mode 100644 index 0000000..24f9bcb Binary files /dev/null and b/__pycache__/model_numpy.cpython-38.pyc differ diff --git a/config.py b/config.py index 12a552d..9431188 100644 --- a/config.py +++ b/config.py @@ -27,8 +27,8 @@ BATCH_SIZE = 64 # 批次大小 USE_CLASS_WEIGHT = True # True=启用类别权重, False=不启用(对比用) # 权重计算公式: n_samples / (n_classes * n_class_i) # 正面评论多所以权重小,负面评论少所以权重大 -CLASS_WEIGHT_POS = 0.73 # 正面类权重(自动计算) -CLASS_WEIGHT_NEG = 1.58 # 负面类权重(自动计算) +CLASS_WEIGHT_POS = 0.01 # 正面类权重(自动计算) +CLASS_WEIGHT_NEG = 3.0 # 负面类权重(自动计算) # ==================== 实验相关 ==================== RUN_COMPARISON = False # True=运行对比实验, False=运行单个模型 diff --git a/陈钦燕.xls b/陈钦燕.xls new file mode 100644 index 0000000..f899781 Binary files /dev/null and b/陈钦燕.xls differ