You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* init few shot
* Update optimizer_config.schema.json
* apply few shot to all
* Update optimizer_config.schema.json
* fix test
* lint
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/optimizer_config.schema.json
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@
71
71
},
72
72
"validation_size": {
73
73
"default": 0.2,
74
-
"description": "Fraction of train samples to allocate for validation (if input dataset doesn't contain validation split).",
74
+
"description": "Fraction of train samples to allocate for validation (if input dataset doesn't contain validation split). If `is_few_shot_train` is True, this value will be ignored.",
75
75
"maximum": 1,
76
76
"minimum": 0,
77
77
"title": "Validation Size",
@@ -91,6 +91,19 @@
91
91
"default": 0.5,
92
92
"description": "Set to float to prevent data leak between scoring and decision nodes.",
93
93
"title": "Separation Ratio"
94
+
},
95
+
"is_few_shot_train": {
96
+
"default": false,
97
+
"description": "Whether to use few-shot training.",
98
+
"title": "Is Few Shot Train",
99
+
"type": "boolean"
100
+
},
101
+
"examples_per_intent": {
102
+
"default": 8,
103
+
"description": "Number of examples per intent for few-shot validation. If None, all examples will be used.",
0 commit comments