Skip to content

Commit

Permalink
some minor changes to card design
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCentauri committed Aug 15, 2023
1 parent 9ef24bd commit d43053d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
37 changes: 19 additions & 18 deletions docs/src/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 d-flex">
<div class="card text-center intro-card shadow" style="background-color: transparent">
<div class="card-body flex-fill">
<h5 class="card-title">
<div class="col-sm d-flex">
<div class="card text-center mb-4" style="background-color: transparent">
<div class="card-body">
<h5 class="card-title" style="margin-top: 0px">


.. only:: html

:ref:`getting_started-selection`

.. image:: /examples/selection/images/thumb/sphx_glr_FeatureSelection-WHODataset_thumb.png
:alt:

:ref:`getting_started-selection`

.. raw:: html

</h5>
Expand All @@ -26,18 +26,18 @@
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 d-flex">
<div class="card text-center intro-card shadow" style="background-color: transparent">
<div class="card-body flex-fill">
<h5 class="card-title">
<div class="col-sm d-flex">
<div class="card text-center mb-4" style="background-color: transparent">
<div class="card-body">
<h5 class="card-title" style="margin-top: 0px">

.. only:: html

:ref:`getting_started-pcovr`

.. image:: /examples/pcovr/images/thumb/sphx_glr_PCovR_thumb.png
:alt:

:ref:`getting_started-pcovr`

.. raw:: html

</h5>
Expand All @@ -46,18 +46,18 @@
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 d-flex">
<div class="card text-center intro-card shadow" style="background-color: transparent">
<div class="card-body flex-fill">
<h5 class="card-title">
<div class="col-sm d-flex">
<div class="card text-center mb-4" style="background-color: transparent">
<div class="card-body">
<h5 class="card-title" style="margin-top: 0px">

.. only:: html

:ref:`getting_started-reconstruction`

.. image:: /examples/reconstruction/images/thumb/sphx_glr_PlotLFRE_thumb.png
:alt:

:ref:`getting_started-reconstruction`

.. raw:: html

</h5>
Expand All @@ -69,6 +69,7 @@
</div>
</div>
<br>

.. include:: ../../README.rst
:start-after: marker-issues
:end-before: marker-contributing
Expand Down
6 changes: 3 additions & 3 deletions src/skmatter/sample_selection/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,15 @@ class CUR(_CUR):
>>> selector.fit(X)
CUR(n_to_select=2)
>>> np.round(selector.pi_, 2) # importance scole
array([0., 1., 0.])
array([0.23, 0. , 0.77])
>>> selector.selected_idx_ # importance scole
array([2, 0])
array([2, 1])
>>> # selector.transform(X) cannot be used as sklearn API
>>> # restricts the change of sample size using transformers
>>> # So one has to do
>>> X[selector.selected_idx_]
array([[-0.03, -0.53, 0.08],
[ 0.12, 0.21, 0.02]])
[-0.09, 0.32, -0.1 ]])
"""

def __init__(
Expand Down

0 comments on commit d43053d

Please sign in to comment.