Implement Commons RNG-like samplers in kmath-prob module in common source set #96

Closed
CommanderTvis wants to merge 0 commits from dev into dev
CommanderTvis commented 2020-06-07 18:14:53 +03:00 (Migrated from github.com)

closes #62

closes #62
altavir (Migrated from github.com) requested changes 2020-06-07 20:29:53 +03:00
altavir (Migrated from github.com) left a comment

It does not make sense to completely duplicate commons API and wrap it inside our API. If we are doing a new implementation, it should adhere to our API from the beginning. The API is of course open for debate.

It does not make sense to completely duplicate commons API and wrap it inside our API. If we are doing a new implementation, it should adhere to our API from the beginning. The API is of course open for debate.
altavir (Migrated from github.com) commented 2020-06-07 20:15:21 +03:00

We already have RandomGenerator. This one should be replaced

We already have RandomGenerator. This one should be replaced
altavir (Migrated from github.com) commented 2020-06-07 20:17:37 +03:00

This should be removed. Current ideology is to set a generator once during chain creation. If we want to change the API, we need to discuss it. We can still use state for forks.

This should be removed. Current ideology is to set a generator once during chain creation. If we want to change the API, we need to discuss it. We can still use state for forks.
altavir (Migrated from github.com) commented 2020-06-07 20:19:07 +03:00

Should be converted to Distribution

Should be converted to `Distribution`
altavir (Migrated from github.com) commented 2020-06-07 20:20:19 +03:00

Should be replaced by kotlinistic initializer. Maybe lazy one.

Should be replaced by kotlinistic initializer. Maybe lazy one.
altavir (Migrated from github.com) commented 2020-06-07 20:22:13 +03:00

Should add references for commons-math classes everywhere for a proper tribute.

Should add references for commons-math classes everywhere for a proper tribute.
altavir (Migrated from github.com) commented 2020-06-07 20:22:35 +03:00

Remove and replace by Double sampler

Remove and replace by Double sampler
altavir (Migrated from github.com) commented 2020-06-07 20:23:01 +03:00

To be replaced Int sampler

To be replaced Int sampler
altavir (Migrated from github.com) commented 2020-06-07 20:24:51 +03:00

Init blocks should remover wherever possible and replaced by factory methods.

Init blocks should remover wherever possible and replaced by factory methods.
altavir (Migrated from github.com) commented 2020-06-07 20:26:15 +03:00

Probably should be refactored to use companion functions instead of secondary constructors.

Probably should be refactored to use companion functions instead of secondary constructors.
@ -0,0 +2,4 @@
id("scientifik.mpp")
}
kotlin.sourceSets {
altavir (Migrated from github.com) commented 2020-06-07 20:27:34 +03:00

Should be done inside kmath-prob, not in a separate module.

Should be done inside kmath-prob, not in a separate module.
Shimuuar commented 2020-06-07 20:34:56 +03:00 (Migrated from github.com)

I only took a cursory look at PR, and I don't quite understand what is going on. I can only say that class should have some documentation explaining what they're doing.

I only took a cursory look at PR, and I don't quite understand what is going on. I can only say that class should have some documentation explaining _what_ they're doing.
CommanderTvis commented 2020-06-23 18:21:42 +03:00 (Migrated from github.com)

Migrated to Space

Migrated to Space

Pull request closed

Sign in to join this conversation.
No description provided.