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.
'From tensorflow.keras.model import Sequential'
to re-import the function from the tensorflow.keras.model module.
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.