Skip to content

CSHARP-5527: Add support for $sigmoid expression in LINQ #1638

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

Merged
merged 5 commits into from
Mar 27, 2025

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.

@adelinowona adelinowona changed the title CSHARP-5527: Support $sigmoid expression CSHARP-5527: Add support for $sigmoid expression Mar 27, 2025
@adelinowona adelinowona changed the title CSHARP-5527: Add support for $sigmoid expression CSHARP-5527: Add support for $sigmoid expression in LINQ Mar 27, 2025
@adelinowona adelinowona merged commit 34c1aa9 into mongodb:main Mar 27, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants