Skip to content

Commit

Permalink
fix mypy complaints (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostella authored Jun 14, 2019
1 parent a52a9d2 commit 1c7e971
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/distribution/test_distribution_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def maximum_likelihood_estimate_sgd(
distr_output: DistributionOutput,
samples: mx.ndarray,
init_biases: List[mx.ndarray.NDArray] = None,
num_epochs: PositiveInt = 5,
learning_rate: PositiveFloat = 1e-2,
num_epochs: PositiveInt = PositiveInt(5),
learning_rate: PositiveFloat = PositiveFloat(1e-2),
hybridize: bool = True,
) -> Iterable[float]:
model_ctx = mx.cpu()
Expand Down Expand Up @@ -151,7 +151,7 @@ def test_studentT_likelihood(
init_biases=init_bias,
hybridize=hybridize,
num_epochs=PositiveInt(10),
learning_rate=1e-2,
learning_rate=PositiveFloat(1e-2),
)

assert (
Expand Down Expand Up @@ -352,7 +352,7 @@ def domain_map(cls, F, mu, b):
LaplaceFixedVarianceOutput(),
samples,
init_biases=[3 * mu, 0.1],
learning_rate=1e-3,
learning_rate=PositiveFloat(1e-3),
hybridize=hybridize,
)

Expand Down

0 comments on commit 1c7e971

Please sign in to comment.