-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.yaml
60 lines (60 loc) · 1.24 KB
/
example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
task_id: "local_runs"
run_id: "example_config"
num_epochs: 5
dataset_dir: "datasets/local"
commit_hash: "abc"
batch_size: 64
learning_rate: 1e-2
reuse_epoch: True
dataloader_workers: 4
dataset:
query_features:
- name: "query_search_phrase"
type: "text"
document_features:
- name: "document_name"
type: "text"
- name: "product_category_id"
type: "categorical"
dictionary_path: "datasets/local/categories"
num_oov_categories: 23
loss:
type: batch_softmax
batch_size: 64
temperature: 0.1
negatives:
type: batch
text_vectorizer:
type: dictionary
dictionary_path: "datasets/local/token_dictionary_150000_0_0"
word_unigrams_limit: 10
word_bigrams_limit: 0
char_trigrams_limit: 0
num_oov_tokens: 50000
model:
type: MultiModalTwoTower
text_embedding:
num_embeddings: 200000
embedding_dim: 256
category_feature:
num_embeddings: 23000
embedding_dim: 32
hidden_layers:
- 128
last_linear: True
output_dim: 128
query:
text_feature: "query_search_phrase"
document:
text_feature: "document_name"
categorical_feature: "document_category_id"
recall_validation:
enabled: False
k:
- 10
- 60
- 100
- 1024
query_typo_probabilities:
- 0.0
- 0.5