Skip to content

Commit

Permalink
Merge pull request #1 from decarsg/feature/add-tikhonov-comparison
Browse files Browse the repository at this point in the history
Feature/add tikhonov comparison
  • Loading branch information
sdahdah authored Jul 4, 2022
2 parents e20cba5 + 513ee1b commit d58fb50
Show file tree
Hide file tree
Showing 7 changed files with 691 additions and 144 deletions.
35 changes: 0 additions & 35 deletions .mypy.ini
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
[mypy]

# https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
[mypy-hydra]
ignore_missing_imports = True

[mypy-numpy]
ignore_missing_imports = True

[mypy-omegaconf]
ignore_missing_imports = True

[mypy-pykoop]
ignore_missing_imports = True

[mypy-pykoop.*]
ignore_missing_imports = True

[mypy-sklearn.*]
ignore_missing_imports = True

[mypy-matplotlib]
ignore_missing_imports = True

[mypy-scipy]
ignore_missing_imports = True

[mypy-scipy.*]
ignore_missing_imports = True

[mypy-doit]
ignore_missing_imports = True

[mypy-pandas]
ignore_missing_imports = True

[mypy-cmcrameri]
ignore_missing_imports = True
4 changes: 2 additions & 2 deletions config/regressor/hinf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# is roughly equivalent to the following code::
#
# pykoop.lmi_regressors.LmiEdmdHinfReg(
# alpha=1,
# alpha=7.5e-3,
# ratio=1,
# inv_method='svd',
# # ... plus other settings from ``iter_regressor_base``...
Expand All @@ -20,6 +20,6 @@ defaults:

regressor:
_target_: pykoop.lmi_regressors.LmiEdmdHinfReg
alpha: 1
alpha: 7.5e-3
ratio: 1
inv_method: 'svd'
4 changes: 2 additions & 2 deletions config/regressor/hinf_dmdc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# is roughly equivalent to the following code::
#
# pykoop.lmi_regressors.LmiDmdcHinfReg(
# alpha=1,
# alpha=7.5e-3,
# ratio=1,
# tsvd_unshifted=pykoop.Tsvd(truncation='economy'),
# tsvd_shifted=pykoop.Tsvd(truncation='unknown_noise'),
Expand All @@ -21,7 +21,7 @@ defaults:

regressor:
_target_: pykoop.lmi_regressors.LmiDmdcHinfReg
alpha: 1
alpha: 7.5e-3
ratio: 1
tsvd_unshifted:
_target_: pykoop.Tsvd
Expand Down
4 changes: 2 additions & 2 deletions config/regressor/hinfw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# pykoop.lmi_regressors.LmiHinfZpkMeta(
# hinf_regressor=pykoop.lmi_regressors.LmiDmdcHinfReg(
# alpha=1,
# alpha=7.5e-3,
# ratio=1,
# inv_method='svd',
# # ... plus other settings from ``iter_regressor_base``...
Expand All @@ -31,7 +31,7 @@ regressor:
_target_: pykoop.lmi_regressors.LmiHinfZpkMeta
hinf_regressor:
_target_: pykoop.lmi_regressors.LmiEdmdHinfReg
alpha: 1
alpha: 7.5e-3
ratio: 1
inv_method: 'svd'
type: post
Expand Down
6 changes: 3 additions & 3 deletions config/regressor/iter_regressor_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# bilinear matrix inequalities).

# Maximum number of iterations
max_iter: 100
max_iter: 10

# Tolerance for strict of LMI constraints
picos_eps: 1e-5

# Absolute tolerance for objective cost change. Iteration stops when the change
# in objectiv function is less than this value.
iter_atol: 1e-6
# in objective function is less than this value.
iter_atol: 0

# Parameters for the SDP solver. Sets solver (MOSEK), dualization, verbosity,
# number of threads, and solver tolerances for feasibility and optimality.
Expand Down
12 changes: 12 additions & 0 deletions config/regressor/tikhonov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Standard EDMD regressor with Tikhonov regularization.
#
# This config specifies a regressor that is directly instantiated by Hydra. It
# is roughly equivalent to the following code::
#
# pykoop.Edmd(alpha=7.5e-3)
#
# Details: https://hydra.cc/docs/advanced/instantiate_objects/overview/

regressor:
_target_: pykoop.Edmd
alpha: 7.5e-3
Loading

0 comments on commit d58fb50

Please sign in to comment.