class_docstr: A generic dataset class inheriting from :class:`skorch.dataset.Dataset`
  which simply converts DataFrames to arrays instead of treating them like
  dicts.
class_docstr_tok: ["A","generic","dataset","class","inheriting","from",":","class",":","`","skorch.dataset.Dataset","`","which","simply","converts","DataFrames","to","arrays","instead","of","treating","them","like","dicts","."]
code: def __init__(self, X, y=None, length=None):
      if is_pandas_ndframe(X):
          X = X.values
      if y is not None and is_pandas_ndframe(y):
          y = y.values
      super().__init__(X, y=y, length=length)
  
imports: from inFairness import fairalgo
  from sklearn.preprocessing import LabelBinarizer
  from sklearn.utils.multiclass import type_of_target
  from sklearn.exceptions import NotFittedError
  from skorch import NeuralNet
  from skorch.dataset import unpack_data, Dataset
  from skorch.utils import is_pandas_ndframe
label_desc: Use image node_id 1 to create a new Dataset object from inherited base classes: Dataset_ with example: obj = Dataset(X, y, length)