Skip to content

Commit

Permalink
sk 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
yuerout committed Jun 12, 2024
1 parent 152f131 commit 2ce4bb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion himalaya/kernel_ridge/_kernelizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ class ColumnKernelizer(ColumnTransformer):
If True, computations will be performed on CPU, ignoring the
current backend. If False, use the current backend.
force_int_remainder_colsbool, default=True
Force the columns of the last entry of transformers_, which corresponds
to the “remainder” transformer, to always be stored as indices (int)
rather than column names (str).
Attributes
----------
transformers_ : list
Expand Down Expand Up @@ -308,14 +313,15 @@ class ColumnKernelizer(ColumnTransformer):
kernelizer = False

def __init__(self, transformers, remainder='drop', n_jobs=None,
transformer_weights=None, verbose=False, force_cpu=False):
transformer_weights=None, verbose=False, force_cpu=False, force_int_remainder_cols=True):
self.transformers = transformers
self.remainder = remainder
self.sparse_threshold = 0
self.n_jobs = n_jobs
self.transformer_weights = transformer_weights
self.verbose = verbose
self.force_cpu = force_cpu
self.force_int_remainder_cols = force_int_remainder_cols

def _iter(self, fitted=False, *args, **kwargs):
"""
Expand Down

0 comments on commit 2ce4bb3

Please sign in to comment.