nasa / prog_models

The NASA Prognostic Model Package is a Python framework focused on defining and building models for prognostics (computation of remaining useful life) of engineering systems, and provides a set of prognostics models for select components developed within this framework, suitable for use in prognostics applications for these components.
123 stars 50 forks source link

fixed example in containers.py #509

Closed mstraut closed 1 year ago

mstraut commented 1 year ago

updated an example that didn't work.

github-actions[bot] commented 1 year ago

Thank you for opening this PR. Each PR into dev requires a code review. For the code review, look at the following:

github-actions[bot] commented 1 year ago
Benchmarking Results From: Test Time (s)
import main 0.16673269999999984
import thrown object 0.6371812000000001
model initialization 0.1682043000000002
set noise 0.7906900000000001
simulate 0.4276129000000002
simulate with saving 1.3354203999999998
simulate with saving, dt 1.5073257
simulate with printing results, dt 1.9248921
Plot results 22.9545039
Metrics 0.05859410000000054
Surrogate Model Generation 4.8080367999999964
surrogate sim 1.8693184999999986
surrogate sim, dt 4.074314100000002
To: Test Time (s)
import main 0.17295090000000002
import thrown object 0.6774166000000001
model initialization 0.14760170000000006
set noise 0.7870048999999999
simulate 0.40345319999999996
simulate with saving 1.3418330000000003
simulate with saving, dt 1.4148889000000002
simulate with printing results, dt 1.8216736999999998
Plot results 22.386645
Metrics 0.04721770000000092
Surrogate Model Generation 4.8088406
surrogate sim 1.6996676999999991
surrogate sim, dt 3.8468799999999987
github-actions[bot] commented 1 year ago
Benchmarking Results [Update] From: Test Time (s)
import main 0.13064960000000003
import thrown object 0.5055431000000001
model initialization 0.11432880000000001
set noise 0.6290664000000001
simulate 0.2944477000000001
simulate with saving 0.9355842999999999
simulate with saving, dt 1.0397701000000001
simulate with printing results, dt 1.2519669000000002
Plot results 15.2321484
Metrics 0.03622959999999864
Surrogate Model Generation 3.2588954
surrogate sim 1.0690562999999997
surrogate sim, dt 2.6854450000000014

To:

Test Time (s)
import main 0.1307113000000002
import thrown object 0.5040464
model initialization 0.11204180000000008
set noise 0.6288082999999998
simulate 0.2971282999999998
simulate with saving 0.9673361000000003
simulate with saving, dt 1.0566333
simulate with printing results, dt 1.2613541999999995
Plot results 14.9345173
Metrics 0.03550309999999968
Surrogate Model Generation 3.367380400000002
surrogate sim 1.082210700000001
surrogate sim, dt 2.747625899999999
github-actions[bot] commented 1 year ago
Benchmarking Results [Update] From: Test Time (s)
import main 0.18903840000000005
import thrown object 0.6406576000000002
model initialization 0.1625709999999998
set noise 0.8220388000000001
simulate 0.42467679999999985
simulate with saving 1.3895723999999996
simulate with saving, dt 1.4463197999999995
simulate with printing results, dt 1.9417102999999996
Plot results 21.8021386
Metrics 0.04629189999999994
Surrogate Model Generation 4.6021389
surrogate sim 1.6915091999999987
surrogate sim, dt 3.7993852999999973

To:

Test Time (s)
import main 0.16543149999999995
import thrown object 0.6301601000000001
model initialization 0.14789509999999995
set noise 0.7936098999999999
simulate 0.39798529999999976
simulate with saving 1.2884585
simulate with saving, dt 1.4345739000000002
simulate with printing results, dt 1.8451354000000002
Plot results 21.467731099999998
Metrics 0.047297900000000226
Surrogate Model Generation 4.627755199999999
surrogate sim 1.5997130000000013
surrogate sim, dt 3.699041000000001
github-actions[bot] commented 1 year ago
Benchmarking Results [Update] From: Test Time (s)
import main 0.12772660000000002
import thrown object 0.5047195
model initialization 0.10754449999999993
set noise 0.6521984000000001
simulate 0.2946082999999997
simulate with saving 0.9082694999999998
simulate with saving, dt 1.0271021000000005
simulate with printing results, dt 1.2434977000000007
Plot results 13.890118900000001
Metrics 0.04072009999999793
Surrogate Model Generation 3.087808899999999
surrogate sim 0.9676366999999999
surrogate sim, dt 2.5959532000000003

To:

Test Time (s)
import main 0.12966670000000002
import thrown object 0.5129423
model initialization 0.10642639999999992
set noise 0.6536781
simulate 0.3035960999999996
simulate with saving 0.9309707
simulate with saving, dt 1.0701579000000003
simulate with printing results, dt 1.2843584999999997
Plot results 13.9486815
Metrics 0.03912739999999815
Surrogate Model Generation 3.220787699999999
surrogate sim 0.9972370999999995
surrogate sim, dt 2.6374964
codecov-commenter commented 1 year ago

Codecov Report

Merging #509 (457e832) into dev (7768997) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #509   +/-   ##
=======================================
  Coverage   80.31%   80.31%           
=======================================
  Files          28       28           
  Lines        2205     2205           
=======================================
  Hits         1771     1771           
  Misses        434      434           
Impacted Files Coverage Δ
src/prog_models/utils/containers.py 85.52% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.