-
I am currently working on a Panel to Primitive transformer, where the primitive is essentially a 2D matrix that contains numerous features but is predominantly sparse. As per my current understanding and attempts, it appears that generating a scipy sparse output (such as a csc array) directly from the transform method is not supported. Or am I missing something? Thank you in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes/no - you can turn off input and output checks in transformations via This allows you to use the (btw, if you are using this, feedback and contributed tests for usage with checks turned off would be appreciated! it's currently a "silent" feature due to not-so-thorough testing) More in the middle of this trade-off, you could add sparse output as an Below is a first draft at the rework; to add your own, third party type in the current code base, you would currently have to modify the See some current thinking here, feedback appreciated: |
Beta Was this translation helpful? Give feedback.
-
Addendum: there already is one sparse data mtype for primitives ( See |
Beta Was this translation helpful? Give feedback.
Yes/no - you can turn off input and output checks in transformations via
set_config
, see documentation for which config fields to use, these should give granular control of checks on/off, or which output type you want.This allows you to use the
sktime
framework without any internal controls on what goes in or out, but of course you pay for this flexibility by lack of inbuilt checks and tests (plus, conversions, broadcasting, etc).(btw, if you are using this, feedback and contributed tests for usage with checks turned off would be appreciated! it's currently a "silent" feature due to not-so-thorough testing)
More in the middle of this trade-off, you could add sparse output as an
mtype
if…