oliverlevn commited on
Commit
aded123
·
verified ·
1 Parent(s): 441ad85

Upload processing_time_rcd.py

Browse files
Files changed (1) hide show
  1. processing_time_rcd.py +5 -4
processing_time_rcd.py CHANGED
@@ -50,10 +50,8 @@ class TimeRCDProcessor(ProcessorMixin):
50
  pad_to_multiple: bool = True,
51
  **kwargs
52
  ):
53
- # Don't pass our config params to ProcessorMixin - it expects component objects
54
- super().__init__(**kwargs)
55
-
56
- # Set our processor-specific attributes
57
  self.win_size = win_size
58
  self.stride = stride if stride is not None else win_size
59
  self.normalize = normalize
@@ -61,6 +59,9 @@ class TimeRCDProcessor(ProcessorMixin):
61
 
62
  # Required attributes for ProcessorMixin
63
  self.model_input_names = ["time_series", "attention_mask"]
 
 
 
64
 
65
  @property
66
  def attributes(self):
 
50
  pad_to_multiple: bool = True,
51
  **kwargs
52
  ):
53
+ # Set our processor-specific attributes BEFORE super().__init__
54
+ # so ProcessorMixin can validate them during initialization
 
 
55
  self.win_size = win_size
56
  self.stride = stride if stride is not None else win_size
57
  self.normalize = normalize
 
59
 
60
  # Required attributes for ProcessorMixin
61
  self.model_input_names = ["time_series", "attention_mask"]
62
+
63
+ # Call parent init after setting attributes
64
+ super().__init__(**kwargs)
65
 
66
  @property
67
  def attributes(self):