|
13 | 13 | "cell_type": "markdown",
|
14 | 14 | "metadata": {},
|
15 | 15 | "source": [
|
16 |
| - "The goal of this notebook is to demonstrate the Benchmarking feature offered for Prognostic Models. Specifically, we will demonstrate how to benchmark the computational efficiency of models with a simple example." |
| 16 | + "The goal of this notebook is to demonstrate benchmarking Prognostic Models. Specifically, we will demonstrate how to benchmark the computational efficiency of model simulation. This is typically what you want to look at when benchmarking models, since simulation is the foundation of state estimation and prediction." |
17 | 17 | ]
|
18 | 18 | },
|
19 | 19 | {
|
|
30 | 30 | "metadata": {},
|
31 | 31 | "outputs": [],
|
32 | 32 | "source": [
|
33 |
| - "from prog_models.models import BatteryCircuit\n", |
| 33 | + "from progpy.models import BatteryCircuit\n", |
34 | 34 | "from timeit import timeit"
|
35 | 35 | ]
|
36 | 36 | },
|
|
39 | 39 | "cell_type": "markdown",
|
40 | 40 | "metadata": {},
|
41 | 41 | "source": [
|
42 |
| - "The first import is importing ProgPy's BatteryCircuit Model, and the second import will be used to benchmark our model!" |
| 42 | + "The first import is importing a model to benchmark. In this case, ProgPy's BatteryCircuit Model. The second import is of the timeit tool, which will be used to benchmark our model." |
43 | 43 | ]
|
44 | 44 | },
|
45 | 45 | {
|
46 | 46 | "attachments": {},
|
47 | 47 | "cell_type": "markdown",
|
48 | 48 | "metadata": {},
|
49 | 49 | "source": [
|
50 |
| - "Next, let's initialize our Battery Circuit by creating a model object." |
| 50 | + "Next, let's create our Battery Circuit model." |
51 | 51 | ]
|
52 | 52 | },
|
53 | 53 | {
|
|
65 | 65 | "cell_type": "markdown",
|
66 | 66 | "metadata": {},
|
67 | 67 | "source": [
|
68 |
| - "Then, for our model, we would need to define a future loading function. More information on what a future loading function is and how to use it can be found here: https://nasa.github.io/progpy/prog_models_guide.html#future-loading" |
| 68 | + "Then, for our model, we will need to define a future loading function. More information on what a future loading function is and how to use it can be found here: https://nasa.github.io/progpy/prog_models_guide.html#future-loading" |
69 | 69 | ]
|
70 | 70 | },
|
71 | 71 | {
|
|
94 | 94 | "cell_type": "markdown",
|
95 | 95 | "metadata": {},
|
96 | 96 | "source": [
|
97 |
| - "Finally, we are going to need to benchmark the simulation!\n", |
| 97 | + "Finally, we are ready to benchmark the simulation.\n", |
98 | 98 | "\n",
|
99 |
| - "We can do this by using the `timeit()` function and pass in our `simulate_to()` or `simulate_to_threshold()` function for the `stmt` argument. For more information regarding the `timeit()` function, please read it's documentation located here: https://docs.python.org/3/library/timeit.html" |
| 99 | + "We can do this by using the `timeit()` function and pass in our `simulate_to()` or `simulate_to_threshold()` function for the `stmt` argument. For more information regarding the `timeit()` function, please read its documentation located here: https://docs.python.org/3/library/timeit.html" |
100 | 100 | ]
|
101 | 101 | },
|
102 | 102 | {
|
|
116 | 116 | "cell_type": "markdown",
|
117 | 117 | "metadata": {},
|
118 | 118 | "source": [
|
119 |
| - "In this example, we would be benchmarking the simulation for the BatteryCircuit model up to 600 seconds. Furthermore, we will define our `number` argument to be 500 for sake of runtime." |
| 119 | + "In this example, we are benchmarking the simulation for the BatteryCircuit model up to 600 seconds. Furthermore, we define our `number` argument to be 500 for sake of runtime." |
120 | 120 | ]
|
121 | 121 | },
|
122 | 122 | {
|
|
0 commit comments