-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improving Span, or Span 2 #10
Conversation
Add external weights, ConstantRegressionEmissionScheme and ZeroPoissonMixture
Some problems with sampling
Add external weights, ConstantRegressionEmissionScheme and ZeroPoissonMixture
Some problems with sampling
…l fit time reduced twice
- Regenerated Span model for track view testing - Fixed "id" problems in SpanFitInformation - Fixed wrong FQNs in SpanFitInformationTest
@@ -14,7 +14,7 @@ import org.jetbrains.bio.viktor._I | |||
object MixtureInternals { | |||
@JvmStatic | |||
fun predict(logGammas: F64Array): IntArray { | |||
return IntArray(logGammas.shape[0]) { logGammas.V[_I, it].argMax() } | |||
return IntArray(logGammas.shape[1]) { logGammas.V[_I, it].argMax() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this this a bug-fix, why dimension is changed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was, I even commented on it, and you asked me to provide a test. Since this is a really hard-to-miss bug (shape is usually something like 3 x 15_000_000), I'd say that the integration and sample-and-fit tests that we have cover this issue pretty well.
(That reminds me, though, that I've recently killed argMax
in viktor
. I have to either bring it back or work around this.)
A companion PR for JetBrains-Research/epigenome#1436.
Introduces:
RegessionEmissonScheme
,IntegerRegressionEmissionScheme
andPoissonRegressionEmissionScheme
;2bit
files for custom genome builds if they're in the same folder as thechrom.sizes
file.Also minor code style improvements.