我对Python有点新,并且对如何阅读文档感到困惑。特别是,Scikit learn documentation for their Logistic Regression classifier使用以下参数描述了函数fit
:
Parameters:
X : {array-like, sparse matrix}, shape (n_samples, n_features)
Training vector, where n_samples is the number of samples and n_features is the number of features.
y : array-like, shape (n_samples,)
Target vector relative to X.
X
的第一部分似乎要求字典......但形状是一个元组?我感到很困惑 - 这里的X
期望函数的输入类型是什么?