fix typo
This commit is contained in:
parent
c7613d0bca
commit
f85551a16e
@ -33,7 +33,7 @@ Therefore, since our objective is to stabilize the cart, the target "time series
|
|||||||
|
|
||||||
You can generate your own data with:
|
You can generate your own data with:
|
||||||
```bash
|
```bash
|
||||||
python data.py
|
python sample.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: if you change the presumed sample space in `data.py`, you should make the corresponding changes to the initial distribution in `main.py`.
|
Note: if you change the presumed sample space in `data.py`, you should make the corresponding changes to the initial distribution in `main.py`.
|
||||||
|
2
main.py
2
main.py
@ -20,7 +20,7 @@ def train(data):
|
|||||||
D["u"] = D["i"] * D["o"] / D["p"]
|
D["u"] = D["i"] * D["o"] / D["p"]
|
||||||
mud_point_idx = D["u"].argmax()
|
mud_point_idx = D["u"].argmax()
|
||||||
mud_point = D["lam"].iloc[mud_point_idx]
|
mud_point = D["lam"].iloc[mud_point_idx]
|
||||||
print(f"MUD Point ({mud_point_idx}: {mud_point}")
|
print(f"MUD Point {mud_point_idx}: {mud_point}")
|
||||||
return mud_point
|
return mud_point
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user