完成作业
This commit is contained in:
BIN
__pycache__/config.cpython-38.pyc
Normal file
BIN
__pycache__/config.cpython-38.pyc
Normal file
Binary file not shown.
BIN
__pycache__/dataset.cpython-38.pyc
Normal file
BIN
__pycache__/dataset.cpython-38.pyc
Normal file
Binary file not shown.
BIN
__pycache__/model_numpy.cpython-38.pyc
Normal file
BIN
__pycache__/model_numpy.cpython-38.pyc
Normal file
Binary file not shown.
@@ -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=运行单个模型
|
||||||
|
|||||||
7767
data/ChnSentiCorp/ChnSentiCorp_htl_all.csv
Normal file
7767
data/ChnSentiCorp/ChnSentiCorp_htl_all.csv
Normal file
File diff suppressed because one or more lines are too long
BIN
model_mlp_tfidf_weighted_0430_145319_W1.npy
Normal file
BIN
model_mlp_tfidf_weighted_0430_145319_W1.npy
Normal file
Binary file not shown.
BIN
model_mlp_tfidf_weighted_0430_145319_W2.npy
Normal file
BIN
model_mlp_tfidf_weighted_0430_145319_W2.npy
Normal file
Binary file not shown.
BIN
model_mlp_tfidf_weighted_0430_145319_b1.npy
Normal file
BIN
model_mlp_tfidf_weighted_0430_145319_b1.npy
Normal file
Binary file not shown.
BIN
model_mlp_tfidf_weighted_0430_145319_b2.npy
Normal file
BIN
model_mlp_tfidf_weighted_0430_145319_b2.npy
Normal file
Binary file not shown.
Reference in New Issue
Block a user