Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSHARP-5527: Support $sigmoid expression #1638

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adelinowona
Copy link
Contributor

No description provided.

@adelinowona adelinowona requested review from rstam and sanych-sun March 18, 2025 19:05
@adelinowona adelinowona requested a review from a team as a code owner March 18, 2025 19:05
@adelinowona adelinowona removed the request for review from a team March 18, 2025 19:05
/// </summary>
/// <param name="value">The input value.</param>
/// <returns>The transformed value.</returns>
public static double Sigmoid(double value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is a perfectly reasonable place to declare this method we should discuss a bit whether going forward we want all new methods like this to live in the Mql class.

@adelinowona adelinowona requested review from rstam and sanych-sun March 24, 2025 15:09
Copy link
Contributor

@rstam rstam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@sanych-sun sanych-sun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM + minor suggestion

}

[Fact]
public void Sigmoid_should_work()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: I would suggest test to check failure in case non-numeric representation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants