Closed DonkeyShot21 closed 5 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here with @googlebot I signed it!
) and we'll verify it.
ℹ️ Googlers: Go here for more info.
Ok, sorry for the inconvenience.
Ok, it took some time but I think we are good now. This is what I have added:
np.log(transition_bias)
, and np.log(1 - transition_bias)
to go to -inf
. Previous smoothing only worked with np.log(transition_bias)
Merging #57 into master will increase coverage by
0.18%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #57 +/- ##
==========================================
+ Coverage 90.14% 90.32% +0.18%
==========================================
Files 6 6
Lines 426 434 +8
==========================================
+ Hits 384 392 +8
Misses 42 42
Impacted Files | Coverage Δ | |
---|---|---|
uisrnn/uisrnn.py | 94.36% <100%> (+0.1%) |
:arrow_up: |
uisrnn/utils.py | 81.74% <100%> (+0.59%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 2e3b9a8...4da51a2. Read the comment docs.
Merging #57 into master will increase coverage by
0.18%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #57 +/- ##
==========================================
+ Coverage 90.14% 90.32% +0.18%
==========================================
Files 6 6
Lines 426 434 +8
==========================================
+ Hits 384 392 +8
Misses 42 42
Impacted Files | Coverage Δ | |
---|---|---|
uisrnn/uisrnn.py | 94.36% <100%> (+0.1%) |
:arrow_up: |
uisrnn/utils.py | 81.74% <100%> (+0.59%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 2e3b9a8...4da51a2. Read the comment docs.
This pull request fixes issue #55.
What is in this pull request:
uisrnn.utils.estimate_transition_bias
that calculates transition_bias correctlyuisrnn.utils.resize_sequence
. Now resize_sequence only retunssub_sequences
andseq_lengths
fit
) fromfit_concatenated
tofit
train_sequences
is already concatenated andtransition_bias
has not been passed as argument, saying that the estimation can be incorrectuisrnn.utils.resize_sequence
I also wanted to add
_
tofit_concatenated
to make it private so that the user is discouraged to call it, but I didn't because maybe it has some other dependency to some internal code of yours.