question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Function `sample_gaussian` returns nothing

See original GitHub issue

Could you say, please, why function sample_gaussian in file mixture/gmm.py returns nothing? I think there is keyword return missing. Thanks anyway.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jnothmancommented, Oct 10, 2017

Hot-fixed in b939b5a29a93b176b9afae06fd97a58c57f1ff5d and to be backported into 0.19.1. Thanks.

On 10 October 2017 at 08:58, Roman Yurchak notifications@github.com wrote:

That sounds like a typo in #6957 https://github.com/scikit-learn/scikit-learn/pull/6957 unless I misunderstand something.

Still, it is deprecated, and not used anywhere in scikit-learn anymore; only _sample_gaussian https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/mixture/gmm.py#L111 is used internally…

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/scikit-learn/scikit-learn/issues/9893#issuecomment-335301963, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEz66mKECSuuBSHr62UWx_WeBWaGkPLks5sqpcbgaJpZM4Pyx1U .

1reaction
dima74commented, Oct 11, 2017

@lesteve yes, i saw it, thank you anyway. Actually I use hmmlearn, which used sample_gaussian function. Looks like that they stopped using sample_gaussian recently, but no new release of hmmlearn was since there. Thanks anyway!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generate sample (Gaussian distribution) and store ...
I would like to write a function for generating a sample (n=50) from the Gaussian distribution, for each pixel, 50 simulations. And store...
Read more >
Generate random numbers following a normal distribution in C ...
The math is easy. You generate two (uniform) random numbers, and by applying an formula to them, you get two normally distributed random...
Read more >
MATLAB sampleGaussian - MathWorks
This MATLAB function samples a state in the state space manipSS from a Gaussian (normal) distribution centered on the mean meanState with the...
Read more >
Sampling from a Gaussian Distribution in C# · GitHub
public static double SampleGaussian(Random random, double mean, double stddev) ... NextDouble() returns a sample of [0,1). double x1 = 1 - random.
Read more >
Single sample gaussian noise - Shadertoy
The error function unfortunately doesn't have a closed form expression. ... return fract(sin(dot(n.xy, vec2(12.9898, 78.233)))* 43758.5453);.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found