Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scikit-learn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian Johnson
scikit-learn
Commits
3efe8d31
Commit
3efe8d31
authored
13 years ago
by
Olivier Grisel
Browse files
Options
Downloads
Patches
Plain Diff
DOC: document sparsefuncs cython routines in developer section.
parent
51a17685
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/developers/utilities.rst
+23
-1
23 additions, 1 deletion
doc/developers/utilities.rst
with
23 additions
and
1 deletion
doc/developers/utilities.rst
+
23
−
1
View file @
3efe8d31
...
...
@@ -62,7 +62,7 @@ number generator object.
``RandomState`` object.
- If ``random_state`` is a ``RandomState`` object, then it is passed through.
For example:
For example:
:
>>> from sklearn.utils import check_random_state
>>> random_state = 0
...
...
@@ -125,6 +125,28 @@ Efficient Linear Algebra & Array Operations
Used in ``sklearn.cluster.k_means``.
Efficient Routines for Sparse Matrices
======================================
The ``sklearn.utils.sparsefuncs`` cython module hosts compiled extensions to
efficiently process ``scipy.sparse`` data.
- :func:`sparsefuncs.mean_variance_axis0`: compute the means and
variances along axis 0 of a CSR matrix.
Used for normalizing the tolerance stopping criterion in
:class:`sklearn.cluster.k_means_.KMeans`.
- :func:`sparsefuncs.inplace_csr_row_normalize_l1` and
:func:`sparsefuncs.inplace_csr_row_normalize_l2`: can be used to normalize
individual sparse samples to unit l1 or l2 norm as done in
:class:`sklearn.preprocessing.Normalizer`.
- :func:`sparsefuncs.inplace_csr_column_scale`: can be used to multiply the
columns of a CSR matrix by a constant scale (one scale per column).
Used for scaling features to unit standard deviation in
:class:`sklearn.preprocessing.Scaler`.
Graph Routines
==============
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment