Skip to content

Commit

Permalink
Update data_science.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Evolutionary-Intelligence committed Sep 9, 2024
1 parent 98928b7 commit 9ddcc32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pypop7/benchmarks/data_science.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,23 @@ def __call__(self, w, x, y):


def tanh_loss_lr(w, x, y):
"""Tanh loss function of logistic regression (LR with binary labels/classes {-1, 1}).
"""Tanh loss function of logistic regression (LR with binary class labels {-1, 1}).
.. note:: This loss function for binary classification is generally non-convex
(non-linear least squares).
Parameters
----------
w : ndarray
input vector (weights).
input vector (weights to be optimized).
x : ndarray
features in the used train set.
features in the used training set.
y : ndarray
labels in the used train set.
class labels in the used training set.
Returns
-------
loss/fitness value (`float`).
loss/fitness value to be minimized (`float`).
References
----------
Expand Down

0 comments on commit 9ddcc32

Please sign in to comment.