Made required changes to kernel_approximation.py#17473
Made required changes to kernel_approximation.py#17473thomasjpfan merged 6 commits intoscikit-learn:masterfrom
Conversation
|
looks like there's a small issue with the submitted changes @Mariam-ke (2k+ changes) Might be related to #17341 ? |
|
Yup I saw the untracked files and added them as well. |
|
@Mariam-ke can you please remove them? they shouldn't be added. |
b99ad93 to
95c26bc
Compare
|
I just removed them. |
sklearn/kernel_approximation.py
Outdated
| Equals the dimensionality of the computed feature space. | ||
|
|
||
| random_state : int, RandomState instance or None, optional (default=None) | ||
| random_state : int, RandomState instance, default=None |
There was a problem hiding this comment.
since None has a very specific meaning in the case of random_state, we should still mention it as a possible value. It does not correspond to "nothing" in this case:
| random_state : int, RandomState instance, default=None | |
| random_state : int, RandomState instance or None, default=None |
sklearn/kernel_approximation.py
Outdated
| Equals the dimensionality of the computed feature space. | ||
|
|
||
| random_state : int, RandomState instance or None, optional (default=None) | ||
| random_state : int, RandomState instance, default=None |
There was a problem hiding this comment.
same thing here and in other places please @Mariam-ke ;)
sklearn/kernel_approximation.py
Outdated
| Parameters | ||
| ---------- | ||
| sample_steps : int, optional | ||
| sample_steps : int |
There was a problem hiding this comment.
| sample_steps : int | |
| sample_steps : int, default=2 |
sklearn/kernel_approximation.py
Outdated
| Returns | ||
| ------- | ||
| X_new : {array, sparse matrix}, \ | ||
| X_new : {ndarray, sparse matrix}, \ |
There was a problem hiding this comment.
| X_new : {ndarray, sparse matrix}, \ | |
| X_new : {ndarray, sparse matrix}, \ |
sklearn/kernel_approximation.py
Outdated
| Attributes | ||
| ---------- | ||
| components_ : array, shape (n_components, n_features) | ||
| components_ : array-like of shape (n_components, n_features) |
There was a problem hiding this comment.
These are explicitly numpy arrays.
| components_ : array-like of shape (n_components, n_features) | |
| components_ : ndarray of shape (n_components, n_features) |
sklearn/kernel_approximation.py
Outdated
| Subset of training points used to construct the feature map. | ||
|
|
||
| component_indices_ : array, shape (n_components) | ||
| component_indices_ : array-like of shape (n_components) |
There was a problem hiding this comment.
| component_indices_ : array-like of shape (n_components) | |
| component_indices_ : ndarray of shape (n_components) |
sklearn/kernel_approximation.py
Outdated
| Indices of ``components_`` in the training set. | ||
|
|
||
| normalization_ : array, shape (n_components, n_components) | ||
| normalization_ : array-like of shape (n_components, n_components) |
There was a problem hiding this comment.
| normalization_ : array-like of shape (n_components, n_components) | |
| normalization_ : ndarray of shape (n_components, n_components) |
sklearn/kernel_approximation.py
Outdated
| Returns | ||
| ------- | ||
| X_transformed : array, shape=(n_samples, n_components) | ||
| X_transformed : array-like of shape (n_samples, n_components) |
There was a problem hiding this comment.
| X_transformed : array-like of shape (n_samples, n_components) | |
| X_transformed : ndarray of shape (n_samples, n_components) |
|
Made all the changes |
sklearn/kernel_approximation.py
Outdated
| Equals the dimensionality of the computed feature space. | ||
|
|
||
| random_state : int, RandomState instance or None, optional (default=None) | ||
| rrandom_state : int, RandomState instance, default=None |
There was a problem hiding this comment.
| rrandom_state : int, RandomState instance, default=None | |
| random_state : int, RandomState instance or None, default=None |
|
#DataUmbrella sprint |
Reference Issues/PRs
References #16210
What does this implement/fix? Explain your changes.
Updated the required changes as per the suggested changes on the files changed tab
Any other comments?