Travel Tips
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.resha
例如:
修改之前:
```python new_x = 84610 pre_y = model.predict(new_x) ```
修改之后:
```python new_x = 84610 pre_y = model.predict(np.array(new_x).reshape(1, -1)) ```
亲测有效,运行结果:
```python print("pre_y", pre_y) # 结果 pre_y [[196065.20852406]] ```
Sed ac lorem felis. Ut in odio lorem. Quisque magna dui, maximus ut commodo sed, vestibulum ac nibh. Aenean a tortor in sem tempus auctor
December 4, 2020 at 3:12 pm
Sed ac lorem felis. Ut in odio lorem. Quisque magna dui, maximus ut commodo sed, vestibulum ac nibh. Aenean a tortor in sem tempus auctor
December 4, 2020 at 3:12 pm
Donec in ullamcorper quam. Aenean vel nibh eu magna gravida fermentum. Praesent eget nisi pulvinar, sollicitudin eros vitae, tristique odio.
December 4, 2020 at 3:12 pm
我是 s enim interduante quis metus. Duis porta ornare nulla ut bibendum
Rosie
6 minutes ago