JuliaDynamics/ComplexityMeasures.jl

Reproducibility for `OrdinalPatternEncoding`

オープン

#379 opened on 2024/01/13

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Julia (19 件のフォーク)auto 404
discussion-designgood first issue

Repository metrics

Stars
 (79 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Currently, the isless_rand function, which we use as the default value comparator for OrdinalPatternEncoding, will not give reproducible results. This is because we don't provide an rng argument to the rand call.

To solve this, we could either:

  • Force the user to provide their custom lt function, taking care of reproducibility themselves (not preferable IMHO)
  • Include rng as a field to both OrdinalPatternEncoding and OrdinalPatterns, which gets passed on to isless_rand.

Or maybe there's a better way?

コントリビューターガイド