Fix bugs in cutout training#233
Fix bugs in cutout training#233ArlindKadra merged 2 commits intorefactor_development_regularization_cocktailsfrom
Conversation
| @@ -39,7 +39,8 @@ def data_preparation(self, X: np.ndarray, y: np.ndarray, | |||
| # It is unlikely that the batch size is lower than the number of features, but | |||
| # be safe | |||
| size = min(X.shape[0], X.shape[1]) | |||
There was a problem hiding this comment.
This should also be changed to size=X.shape[1] right ?
There was a problem hiding this comment.
True, I missed that
| replace=False) | ||
|
|
||
| # We use an ordinal encoder on the tabular data | ||
| if not isinstance(self.numerical_columns, typing.Iterable): |
There was a problem hiding this comment.
What if the numerical columns are None, we should still continue with only categorical imputing in this case or not.
There was a problem hiding this comment.
Also if there are only numerical columns, there should not be a conversion for categorical ones.
There was a problem hiding this comment.
Actually when there are no numerical columns, it is not none but it is an empty list. And indexing with an empty list does not affect the tensor so this should work
There was a problem hiding this comment.
Is numerical_columns always in dataset_properties ?
There was a problem hiding this comment.
when its tabular data then yeah
* Fix bugs in cutout training * Address comments from arlind
* Fix bugs in cutout training * Address comments from arlind
* Fix bugs in cutout training * Address comments from arlind
* Fix bugs in cutout training * Address comments from arlind
* Fix bugs in cutout training * Address comments from arlind
* Fix bugs in cutout training * Address comments from arlind
* Fix bugs in cutout training * Address comments from arlind
* Fix bugs in cutout training * Address comments from arlind
* Fix bugs in cutout training * Address comments from arlind
* Fix bugs in cutout training * Address comments from arlind
This PR fixes the following bugs: