Skip to content

Commit

Permalink
Update self._queue in every partial_fit call
Browse files Browse the repository at this point in the history
  • Loading branch information
olegkkruglov committed Aug 30, 2024
1 parent b10b58a commit 4bc41d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions onedal/basic_statistics/incremental_basic_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def partial_fit(self, X, weights=None, queue=None):
self : object
Returns the instance itself.
"""
if not hasattr(self, "_queue"):
self._queue = queue
self._queue = queue
policy = self._get_policy(queue, X)
X, weights = _convert_to_supported(policy, X, weights)

Expand Down
3 changes: 1 addition & 2 deletions onedal/spmd/basic_statistics/incremental_basic_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def partial_fit(self, X, weights=None, queue=None):
self : object
Returns the instance itself.
"""
if not hasattr(self, "_queue"):
self._queue = queue
self._queue = queue
policy = super(IncrementalBasicStatistics_base, self)._get_policy(queue, X)
X, weights = _convert_to_supported(policy, X, weights)

Expand Down

0 comments on commit 4bc41d0

Please sign in to comment.