model.add(Dense(20, 64))
Traceback (most recent call last):
File "", line 1, in model.add(Dense(20, 64))
File "d:\ProgramData\Anaconda3\lib\site-packages\keras\legacy\interfaces.py", line 46, in wrapper str(list(args[1:])))
TypeError: `Dense` can accept only 1 positional arguments ('units',), but you passed the following positional arguments: [20, 64]
序贯模型API - Keras中文文档序贯模型API - Keras中文文档:
https://keras-cn.readthedocs.io/en/latest/models/sequential/
import pandas as pd
inputfile = 'C:/Users/Administrator/Desktop/data analysis/Python_data_analysis_and_mining/chapter5/demo/data/sales_d