Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thieu1995 committed Jan 2, 2024
1 parent da59b8a commit c4b5dbe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/source/pages/general/advances/log_training_process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions docs/source/pages/general/advances/model_parameter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand All @@ -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",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/source/pages/general/advances/model_problem_name.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/pages/general/advances/starting_positions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c4b5dbe

Please sign in to comment.