Skip to content

Commit 0f49921

Browse files
authored
Improve github actions (#46)
* Improve github actions * url * urls * check * urls * check urls
1 parent aa08b1a commit 0f49921

File tree

12 files changed

+22
-73
lines changed

12 files changed

+22
-73
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Black Format Checker
1+
name: Black + Ruff Format Checker
22
on: [push, pull_request]
33
jobs:
44
black-format-check:
@@ -9,3 +9,8 @@ jobs:
99
with:
1010
options: "--diff --check"
1111
src: "."
12+
ruff-format-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: chartboost/ruff-action@v1

.github/workflows/check-urls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
print_all: false
4343
timeout: 5
4444
retry_count# : 3
45-
exclude_urls: https://hal.archives-ouvertes.fr/hal-00990252/document,https://github.com/onnx/models/raw/main/vision/classification/mobilenet/model/mobilenetv2-12.onnx
45+
exclude_urls: https://hal.archives-ouvertes.fr/hal-00990252/document,https://github.com/onnx/models/raw/main/vision/classification/mobilenet/model/mobilenetv2-12.onnx,https://arxiv.org/ftp/arxiv/papers/1510/1510.04863.pdf,https://hal.science/hal-01125940
4646
exclude_patterns: https://www.data.gouv.fr/fr/datasets/r/e3d83ab3-dc52-4c99-abaf-8a38050cc68c,https://github.com/onnx/models/raw/main/vision/classification/mobilenet/model/mobilenetv2-12.onnx
4747
# force_pass : true

.local.jenkins.win.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
.. image:: https://github.com/sdpython/sphinx-runpython/raw/main/_doc/_static/logo.png
3+
:width: 120
4+
5+
mlstatpy: détours mathématiques autour du machine learning
6+
==========================================================
7+
28
.. image:: https://ci.appveyor.com/api/projects/status/5env33qptorgshaq?svg=true
39
:target: https://ci.appveyor.com/project/sdpython/mlstatpy
410
:alt: Build Status Windows
@@ -11,7 +17,7 @@
1117

1218
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
1319
:alt: MIT License
14-
:target: http://opensource.org/licenses/MIT
20+
:target: https://opensource.org/license/MIT/
1521

1622
.. image:: https://codecov.io/github/sdpython/mlstatpy/coverage.svg
1723
:target: https://codecov.io/github/sdpython/mlstatpy/
@@ -20,11 +26,6 @@
2026
:alt: GitHub Issues
2127
:target: https://github.com/sdpython/mlstatpy/issues
2228

23-
.. _l-README:
24-
25-
mlstatpy: détours mathématiques autour du machine learning
26-
==========================================================
27-
2829
Le module contient essentiellement des digressions mathématiques
2930
autour du machine learning. Parmi les choses intéressantes,
3031
une courbe *ROC* avec intervalle de confiance, détection
@@ -40,5 +41,4 @@ automated segment detection in a image, some simple autocomplete
4041
algorithm, a graph edit distance, some helpers on Wikipedia data,
4142
an algorithm to convert decision trees into neural network.
4243

43-
* `GitHub/mlstatpy <https://github.com/sdpython/mlstatpy/>`_
44-
* `documentation <https://sdpython.github.io/doc/mlstatpy/>`_
44+
* `documentation <https://sdpython.github.io/doc/mlstatpy/dev/>`_

_doc/c_nlp/completion_digression.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Avec les préfixes, un noeud a au plus 27 (26 lettres + espaces)
1414
caractères suivant possibles. Si le préfixe a des synonymes,
1515
rien n'empêche de relier ce noeud avec les successeurs de ses
1616
synonymes.
17-
A ce sujet, voir `Context-Sensitive Query Auto-Completion <http://technion.ac.il/~nkraus/papers/fr332-bar-yossef.pdf>`_,
17+
A ce sujet, voir `Context-Sensitive Query Auto-Completion
18+
<https://db-event.jpn.org/deim2018/data/papers/149.pdf>`_,
1819
de Ziv Bar-Yossef et Naama Kraus.
1920

2021
Source

_doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"LAESA": "https://tavianator.com/aesa/",
186186
"LAPACK": "http://www.netlib.org/lapack/",
187187
"mlinsights": "http://www.xavierdupre.fr/app/mlinsights/helpsphinx/index.html",
188-
"mlstatpy": "https://sdpython.github.io/doc/mlstatpy/",
188+
"mlstatpy": "https://sdpython.github.io/doc/mlstatpy/dev/",
189189
"numpy": (
190190
"https://www.numpy.org/",
191191
("https://docs.scipy.org/doc/numpy/reference/generated/numpy.{0}.html", 1),

_doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Xavier Dupré
5252

5353
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
5454
:alt: MIT License
55-
:target: http://opensource.org/licenses/MIT
55+
:target: https://opensource.org/license/MIT/
5656

5757
.. image:: https://codecov.io/github/sdpython/mlstatpy/coverage.svg
5858
:target: https://codecov.io/github/sdpython/mlstatpy

_doc/notebooks/metric/roc_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@
539539
"source": [
540540
"## ROC - TPR / FPR\n",
541541
"\n",
542-
"We do the same with the class this module provides [ROC](https://sdpython.github.io/doc/mlstatpy/c_metric/roc.html).\n",
542+
"We do the same with the class this module provides [ROC](https://sdpython.github.io/doc/mlstatpy/dev/c_metric/roc.html).\n",
543543
"\n",
544544
"* TPR = True Positive Rate\n",
545545
"* FPR = False Positive Rate\n",

_doc/notebooks/ml/logreg_voronoi.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@
476476
"source": [
477477
"## Un diagramme de Voronoï proche\n",
478478
"\n",
479-
"On applique la formule définie par [Régression logistique, diagramme de Voronoï, k-Means](https://sdpython.github.io/doc/mlstatpy/c_ml/lr_voronoi.html) et on résoud le système linéaire défini par :\n",
479+
"On applique la formule définie par [Régression logistique, diagramme de Voronoï, k-Means](https://sdpython.github.io/doc/mlstatpy/dev/c_ml/lr_voronoi.html) et on résoud le système linéaire défini par :\n",
480480
"\n",
481481
"$$\\begin{array}{ll}\n",
482482
"&\\left\\{\\begin{array}{l}\\left<L_i - L_j, P_i \\right> + B_i - B_j = - \\left\\{ \\left<L_i - L_j, P_j \\right> + B_i - B_j \\right \\} \\\\ P_i- P_j - \\left<P_i - P_j, \\frac{L_i-L_j}{\\Vert L_i-L_j\\Vert} \\right> \\frac{L_i-L_j}{\\Vert L_i-L_j\\Vert }=0 \\end{array} \\right.\n",

0 commit comments

Comments
 (0)