diff --git a/examples/trials/sklearn/classification/main.py b/examples/trials/sklearn/classification/main.py index b6b394e5e9..280dc26fb8 100644 --- a/examples/trials/sklearn/classification/main.py +++ b/examples/trials/sklearn/classification/main.py @@ -41,7 +41,7 @@ def get_default_parameters(): '''get default parameters''' params = { 'C': 1.0, - 'keral': 'linear', + 'kernel': 'linear', 'degree': 3, 'gamma': 0.01, 'coef0': 0.01 @@ -52,7 +52,7 @@ def get_model(PARAMS): '''Get model according to parameters''' model = SVC() model.C = PARAMS.get('C') - model.keral = PARAMS.get('keral') + model.kernel = PARAMS.get('kernel') model.degree = PARAMS.get('degree') model.gamma = PARAMS.get('gamma') model.coef0 = PARAMS.get('coef0') diff --git a/examples/trials/sklearn/classification/search_space.json b/examples/trials/sklearn/classification/search_space.json index 1687a93ccc..f63e07bda6 100644 --- a/examples/trials/sklearn/classification/search_space.json +++ b/examples/trials/sklearn/classification/search_space.json @@ -1,6 +1,6 @@ { "C": {"_type":"uniform","_value":[0.1, 1]}, - "keral": {"_type":"choice","_value":["linear", "rbf", "poly", "sigmoid"]}, + "kernel": {"_type":"choice","_value":["linear", "rbf", "poly", "sigmoid"]}, "degree": {"_type":"choice","_value":[1, 2, 3, 4]}, "gamma": {"_type":"uniform","_value":[0.01, 0.1]}, "coef0 ": {"_type":"uniform","_value":[0.01, 0.1]}