Skip to content

Commit f943b26

Browse files
Merge pull request #41 from Quantmetry/dev
Dev
2 parents e2fc2f7 + e28cae4 commit f943b26

File tree

20 files changed

+530
-128
lines changed

20 files changed

+530
-128
lines changed

HISTORY.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
=======
22
History
33
=======
4+
0.0.14 (2023-06-14)
5+
-------------------
6+
7+
* Documentation improved, with the API information
8+
* Bug patched, in particular for some logo display and RPCA imputation
9+
* The PRSA online dataset has been modified, the benchmark now loads the new version with a single station
10+
* More tests have been implemented
11+
* Tests for compliance with the sklearn standards have been implemented (check_estimator). Some arguments are mutable, and the corresponding tests are for now ignored
12+
413
0.0.13 (2023-06-07)
514
-------------------
615

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
.. |Commits| image:: https://img.shields.io/github/commits-since/Quantmetry/qolmat/latest/main
2424
.. _Commits: https://github.com/Quantmetry/qolmat/commits/main
2525

26-
.. image:: https://github.com/Quantmetry/qolmat/tree/main/docs/images/logo.png
26+
.. image:: https://raw.githubusercontent.com/Quantmetry/qolmat/main/docs/images/logo.png
2727
:align: center
2828

2929
Qolmat - The Tool for Data Imputation
@@ -95,7 +95,7 @@ For this demonstration, let us create artificial holes in our dataset.
9595
plt.savefig('readme1.png')
9696
plt.show()
9797
98-
.. image:: https://github.com/Quantmetry/qolmat/tree/main/docs/images/readme1.png
98+
.. image:: https://raw.githubusercontent.com/Quantmetry/qolmat/main/docs/images/readme1.png
9999
:align: center
100100

101101
To impute missing data, there are several methods that can be imported with ``from qolmat.imputations import imputers``.
@@ -191,7 +191,7 @@ We can observe the benchmark results.
191191
plt.savefig('readme3.png')
192192
plt.show()
193193
194-
.. image:: https://github.com/Quantmetry/qolmat/tree/main/docs/images/readme2.png
194+
.. image:: https://raw.githubusercontent.com/Quantmetry/qolmat/main/docs/images/readme2.png
195195
:align: center
196196

197197
Finally, we keep the best ``TSMLE`` imputor we represent.
@@ -206,7 +206,7 @@ Finally, we keep the best ``TSMLE`` imputor we represent.
206206
plt.plot(df_with_nan['y'],'.b')
207207
plt.show()
208208
209-
.. image:: https://github.com/Quantmetry/qolmat/tree/main/docs/images/readme3.png
209+
.. image:: https://raw.githubusercontent.com/Quantmetry/qolmat/main/docs/images/readme3.png
210210
:align: center
211211

212212

@@ -231,7 +231,7 @@ Qolmat has been developed by Quantmetry.
231231

232232
|Quantmetry|_
233233

234-
.. |Quantmetry| image:: https://www.quantmetry.com/wp-content/uploads/2020/08/08-Logo-quant-Texte-noir.svg
234+
.. |Quantmetry| image:: https://raw.githubusercontent.com/Quantmetry/qolmat/main/docs/images/quantmetry.png
235235
:width: 150
236236
.. _Quantmetry: https://www.quantmetry.com/
237237

docs/_templates/__init__.py

Whitespace-only changes.

docs/_templates/class.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:mod:`{{module}}`.{{objname}}
2+
{{ underline }}==============
3+
4+
.. currentmodule:: {{ module }}
5+
6+
.. autoclass:: {{ objname }}
7+
:members:
8+
9+
{% block methods %}
10+
.. automethod:: __init__
11+
{% endblock %}
12+
13+
.. include:: {{module}}.{{objname}}.examples
14+
15+
.. raw:: html
16+
17+
<div style='clear:both'></div>

docs/_templates/function.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
:mod:`{{module}}`.{{objname}}
2+
{{ underline }}====================
3+
4+
.. currentmodule:: {{ module }}
5+
6+
.. autofunction:: {{ objname }}
7+
8+
.. include:: {{module}}.{{objname}}.examples
9+
10+
.. raw:: html
11+
12+
<div style='clear:both'></div>

docs/api.rst

Lines changed: 80 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,94 @@
1-
##########
1+
###########
22
Qolmat API
3-
##########
3+
###########
44

55
.. currentmodule:: qolmat
66

7-
Classes
8-
=======
7+
Imputers
8+
=========
99

1010
.. autosummary::
1111
:toctree: generated/
12-
:template: class.rst
12+
:template: class.rst
13+
14+
imputations.imputers.ImputerEM
15+
imputations.imputers.ImputerKNN
16+
imputations.imputers.ImputerInterpolation
17+
imputations.imputers.ImputerLOCF
18+
imputations.imputers.ImputerMedian
19+
imputations.imputers.ImputerMean
20+
imputations.imputers.ImputerMICE
21+
imputations.imputers.ImputerMode
22+
imputations.imputers.ImputerNOCB
23+
imputations.imputers.ImputerOracle
24+
imputations.imputers.ImputerRegressor
25+
imputations.imputers.ImputerResiduals
26+
imputations.imputers.ImputerRPCA
27+
imputations.imputers.ImputerShuffle
28+
29+
Comparator
30+
===========
1331

14-
imputations.rpca.rpca.RPCA
32+
.. autosummary::
33+
:toctree: generated/
34+
:template: class.rst
35+
36+
benchmark.comparator.Comparator
1537

16-
Utils
17-
=====
38+
Missing Patterns
39+
================
40+
41+
.. autosummary::
42+
:toctree: generated/
43+
:template: class.rst
44+
45+
benchmark.missing_patterns.UniformHoleGenerator
46+
benchmark.missing_patterns.GeometricHoleGenerator
47+
benchmark.missing_patterns.EmpiricalHoleGenerator
48+
benchmark.missing_patterns.MultiMarkovHoleGenerator
49+
benchmark.missing_patterns.GroupedHoleGenerator
50+
51+
52+
Metrics
53+
=======
1854

1955
.. autosummary::
2056
:toctree: generated/
2157
:template: function.rst
2258

59+
benchmark.metrics.mean_squared_error
60+
benchmark.metrics.root_mean_squared_error
61+
benchmark.metrics.weighted_mean_absolute_percentage_error
62+
benchmark.metrics.wasserstein_distance
63+
benchmark.metrics.kl_divergence
64+
benchmark.metrics.kolmogorov_smirnov_test
65+
benchmark.metrics.total_variance_distance
66+
benchmark.metrics.mean_difference_correlation_matrix_numerical_features
67+
benchmark.metrics.mean_difference_correlation_matrix_categorical_features
68+
benchmark.metrics.mean_diff_corr_matrix_categorical_vs_numerical_features
69+
benchmark.metrics.sum_energy_distances
70+
benchmark.metrics.frechet_distance
71+
72+
73+
RPCA engine
74+
================
75+
76+
.. autosummary::
77+
:toctree: generated/
78+
:template: class.rst
79+
80+
imputations.rpca.rpca_noisy.RPCANoisy
81+
imputations.rpca.rpca_pcp.RPCAPCP
82+
83+
84+
EM engine
85+
================
86+
87+
.. autosummary::
88+
:toctree: generated/
89+
:template: class.rst
90+
91+
imputations.em_sampler.MultiNormalEM
92+
imputations.em_sampler.VAR1EM
93+
94+

docs/hole_generator.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
Focus on holes generation
3+
==========================
4+
5+
Qolmat allows to generate new missing valueson a an existing dataset, mainly for the purpose of comparing imputations. All features are available in `benchmark.missing_patterns`. This section will be completed very soon...

docs/images/quantmetry.png

34 KB
Loading

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
explanation
99
RPCA
1010
EM_sampler
11+
hole_generator
1112

1213
.. toctree::
1314
:maxdepth: 2

examples/benchmark.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ dict_imputers = {
149149
# "mode": imputer_mode,
150150
"interpolation": imputer_interpol,
151151
# "spline": imputer_spline,
152-
# "shuffle": imputer_shuffle,
152+
"shuffle": imputer_shuffle,
153153
# "residuals": imputer_residuals,
154154
# "OU": imputer_ou,
155155
# "TSOU": imputer_tsou,

0 commit comments

Comments
 (0)