Skip to content

Commit 79ba02a

Browse files
authored
Merge pull request #285 from ntumlgroup/tree-name
Fixed missing parameter
2 parents cb9f8a2 + 43c47f6 commit 79ba02a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

example_config/EUR-Lex/tree_l2svm.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# data
2+
training_file: data/EUR-Lex/train.txt
3+
test_file: data/EUR-Lex/test.txt
4+
data_name: EUR-Lex
5+
6+
# train
7+
seed: 1337
8+
linear: true
9+
liblinear_options: "-s 2 -B 1 -e 0.0001 -q"
10+
linear_technique: tree
11+
12+
# eval
13+
eval_batch_size: 256
14+
monitor_metrics: [P@1, P@3, P@5]
15+
metric_threshold: 0
16+
17+
data_format: txt

libmultilabel/linear/tree.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ def visit(node):
256256
root.dfs(visit)
257257

258258
model = linear.FlatModel(
259+
name='flattened-tree',
259260
weights=np.hstack(weights),
260261
bias=bias,
261262
thresholds=0,

0 commit comments

Comments
 (0)