From c4b5dbe69a54abb734ccec2fd05b5250e44bdb76 Mon Sep 17 00:00:00 2001 From: Thieu Nguyen Date: Tue, 2 Jan 2024 13:09:14 +0700 Subject: [PATCH] Update docs --- .../pages/general/advances/log_training_process.rst | 8 ++++---- docs/source/pages/general/advances/model_parameter.rst | 4 ++-- docs/source/pages/general/advances/model_problem_name.rst | 2 +- docs/source/pages/general/advances/starting_positions.rst | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/source/pages/general/advances/log_training_process.rst b/docs/source/pages/general/advances/log_training_process.rst index 896adeb0..619330e3 100644 --- a/docs/source/pages/general/advances/log_training_process.rst +++ b/docs/source/pages/general/advances/log_training_process.rst @@ -9,14 +9,14 @@ the log process. .. code-block:: python problem_dict1 = { - "fit_func": F5, + "obj_func": F5, "bounds": FloatVar(lb=[-3, -5, 1, -10, ], ub=[5, 10, 100, 30, ]), "minmax": "min", # Default = "console" } problem_dict1 = { - "fit_func": F5, + "obj_func": F5, "bounds": FloatVar(lb=[-3, -5, 1, -10, ], ub=[5, 10, 100, 30, ]), "minmax": "min", "log_to": "console", @@ -28,7 +28,7 @@ the log process. .. code-block:: python problem_dict2 = { - "fit_func": F5, + "obj_func": F5, "bounds": FloatVar(lb=[-3, -5, 1, -10, ], ub=[5, 10, 100, 30, ]), "minmax": "min", "log_to": "file", @@ -41,7 +41,7 @@ the log process. .. code-block:: python problem_dict3 = { - "fit_func": F5, + "obj_func": F5, "bounds": FloatVar(lb=[-3, -5, 1, -10, ], ub=[5, 10, 100, 30, ]), "minmax": "min", "log_to": None, diff --git a/docs/source/pages/general/advances/model_parameter.rst b/docs/source/pages/general/advances/model_parameter.rst index 632e76bd..2a6f6eb7 100644 --- a/docs/source/pages/general/advances/model_parameter.rst +++ b/docs/source/pages/general/advances/model_parameter.rst @@ -28,7 +28,7 @@ can help you determine how to set valid parameters. from mealpy import DE, FloatVar problem = { - "fit_func": F5, + "obj_func": F5, "bounds": FloatVar(lb=[-10,]*10, ub=[30,]*10), "minmax": "min", } @@ -54,7 +54,7 @@ This will definitely be helpful when using ParameterGrid/GridSearchCV from the s from mealpy import DE, FloatVar problem = { - "fit_func": F5, + "obj_func": F5, "bounds": FloatVar(lb=[-10,]*10, ub=[30,]*10), "minmax": "min", } diff --git a/docs/source/pages/general/advances/model_problem_name.rst b/docs/source/pages/general/advances/model_problem_name.rst index e61177d7..fc2575c5 100644 --- a/docs/source/pages/general/advances/model_problem_name.rst +++ b/docs/source/pages/general/advances/model_problem_name.rst @@ -12,7 +12,7 @@ problem, especially in multitask problems. from mealpy.swarm_based import PSO problem = { - "fit_func": F5, + "obj_func": F5, "bounds": FloatVar(lb=[-3, -5, 1, -10, ], ub=[5, 10, 100, 30, ]), "minmax": "min", "name": "Benchmark Function 5th" diff --git a/docs/source/pages/general/advances/starting_positions.rst b/docs/source/pages/general/advances/starting_positions.rst index cba8a3d4..b661de32 100644 --- a/docs/source/pages/general/advances/starting_positions.rst +++ b/docs/source/pages/general/advances/starting_positions.rst @@ -20,7 +20,7 @@ Not recommended to use this utility. But in case you need this: return result fm_problem = { - "fit_func": frequency_modulated, + "obj_func": frequency_modulated, "bounds": FloatVar(lb=[-6.4, ] * 6, ub=[6.35, ] * 6), "minmax": "min", "log_to": "console",