phausamann / sklearn-xarray

Metadata-aware machine learning.
http://bit.do/sklearn-xarray
BSD 3-Clause "New" or "Revised" License
102 stars 12 forks source link

Allow more flexible dimension reduction for Targets #21

Closed phausamann closed 6 years ago

phausamann commented 6 years ago

It should be possible to:

  1. Specify more than one dimension name in the dim parameter
  2. Pass a callable as an argument that does the reduction for the rest of the dimensions not in dim. This could be numpy.mean for numeric coordinates or a mode function for categorical coordinates.