'What is the input format for sk-learn classifiers?

I am new to both scikit and numpy/pandas, but I am familiar with Python and data processing in general. I am confused about what format the inputs to sk-learn classifiers should be. I have tried using a debugger to inspect example matrices used in tutorial examples of sk-learn, but they have a huge number of members and I can't figure out which ones are the data and which are derived.

Is there a reference specification somewhere that explains what an array must look like and how to construct it for it to be a valid input for sk-learn classifiers?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source