ci4sManagement-cloud/react-ui/src/pages/ActiveLearn/components/CreateForm/utils.ts

95 lines
1.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 分类算法
export const classifierAlgorithms = [
{
label: 'logistic_regression逻辑回归',
value: 'logistic_regression',
},
{
label: 'decision_tree决策树',
value: 'decision_tree',
},
{
label: 'random_forest随机森林',
value: 'random_forest',
},
{
label: 'SVM支持向量机',
value: 'SVM',
},
{
label: 'naive_bayes朴素贝叶斯',
value: 'naive_bayes',
},
{
label: 'GBM梯度提升树',
value: 'GBM',
},
];
// 回归算法
export const regressorAlgorithms = [
{
label: 'bayesian_ridge岭回归',
value: 'bayesian_ridge',
},
{
label: 'ARD_regression自动相关性确定回归',
value: 'ARD_regression',
},
{
label: 'gaussian_process高斯回归',
value: 'gaussian_process',
},
];
// 框架类型
export enum FrameworkType {
Sklearn = 'sklearn',
Keras = 'keras',
Pytorch = 'pytorch',
}
// 框架类型选项
export const frameworkTypeOptions = [
{
label: FrameworkType.Sklearn,
value: FrameworkType.Sklearn,
},
{
label: FrameworkType.Keras,
value: FrameworkType.Keras,
},
{
label: FrameworkType.Pytorch,
value: FrameworkType.Pytorch,
},
];
// 查询策略
export const queryStrategies = [
{
label: 'uncertainty_sampling',
value: 'uncertainty_sampling',
},
{
label: 'uncertainty_batch_sampling',
value: 'uncertainty_batch_sampling',
},
{
label: 'max_std_sampling',
value: 'max_std_sampling',
},
{
label: 'expected_improvement',
value: 'expected_improvement',
},
{
label: 'upper_confidence_bound',
value: 'upper_confidence_bound',
},
{
label: 'probability_of_improvement',
value: 'probability_of_improvement',
},
];