Skip to content

Commit 3f2804b

Browse files
authored
Add PBT to experiment creation form (#1909)
1 parent 2d35224 commit 3f2804b

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

pkg/new-ui/v1beta1/frontend/src/app/constants/algorithms-settings.const.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,29 @@ export const DartsSettings: AlgorithmSetting[] = [
242242
},
243243
];
244244

245+
export const PbtSettings: AlgorithmSetting[] = [
246+
{
247+
name: 'suggestion_trial_dir',
248+
value: '/var/log/katib/checkpoints/',
249+
type: AlgorithmSettingType.STRING,
250+
},
251+
{
252+
name: 'n_population',
253+
value: 40,
254+
type: AlgorithmSettingType.INTEGER,
255+
},
256+
{
257+
name: 'resample_probability',
258+
value: null,
259+
type: AlgorithmSettingType.FLOAT,
260+
},
261+
{
262+
name: 'truncation_threshold',
263+
value: 0.2,
264+
type: AlgorithmSettingType.FLOAT,
265+
},
266+
];
267+
245268
export const EarlyStoppingSettings: AlgorithmSetting[] = [
246269
{
247270
name: 'min_trials_required',
@@ -271,4 +294,5 @@ export const AlgorithmSettingsMap: { [key: string]: AlgorithmSetting[] } = {
271294
[AlgorithmsEnum.SOBOL]: SOBOLSettings,
272295
[AlgorithmsEnum.ENAS]: ENASSettings,
273296
[AlgorithmsEnum.DARTS]: DartsSettings,
297+
[AlgorithmsEnum.PBT]: PbtSettings,
274298
};

pkg/new-ui/v1beta1/frontend/src/app/constants/algorithms-types.const.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const AlgorithmNames = {
1212
[AlgorithmsEnum.MULTIVARIATE_TPE]: 'Multivariate Tree of Parzen Estimators',
1313
[AlgorithmsEnum.CMAES]: 'Covariance Matrix Adaptation: Evolution Strategy',
1414
[AlgorithmsEnum.SOBOL]: 'Sobol Quasirandom Sequence',
15+
[AlgorithmsEnum.PBT]: 'Population Based Training',
1516
};
1617

1718
export const NasAlgorithmNames = {

pkg/new-ui/v1beta1/frontend/src/app/enumerations/algorithms.enum.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export enum AlgorithmsEnum {
99
SOBOL = 'sobol',
1010
ENAS = 'enas',
1111
DARTS = 'darts',
12+
PBT = 'pbt',
1213
}
1314

1415
export enum EarlyStoppingAlgorithmsEnum {

0 commit comments

Comments
 (0)