Skip to content

Commit

Permalink
Update docstring of full_objective
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Mar 25, 2023
1 parent 9738395 commit 2312011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysr/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
function eval_loss(tree, dataset::Dataset{T,L}, options)::L where {T,L}
prediction, flag = eval_tree_array(tree, dataset.X, options)
if !flag
return T(Inf)
return L(Inf)
end
return sum((prediction .- dataset.y) .^ 2) / dataset.n
end
Expand Down

0 comments on commit 2312011

Please sign in to comment.