简体   繁体   中英

How can I resolve this Jupiter Notebook error? [closed]

It always says method is not defined and that df is not defined when I imported it.

在此处输入图像描述

I tried resetting it and resetting keras but it still won't work

you should first run the block where you define it then you can use it in other blocks

You first need to re-run the cell above the last one whenever you reset the notebook / refresh the kernel so it re-imports the Sequential function.

  1. Rerun the cell that contains:
 'From tensorflow.keras.model import Sequential'

to re-import the function from the tensorflow.keras.model module.

  1. and then the cell that is failing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM