Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
blog and numpy import
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Oct 4, 2019
1 parent 2195fe9 commit 1d26194
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 1 deletion.
14 changes: 14 additions & 0 deletions _doc/sphinxdoc/source/blog/2019/2019-10_04_asv.rst
@@ -0,0 +1,14 @@

.. blogpost::
:title: The bug which makes you waste time
:keywords: asv, bug
:date: 2019-10-04
:categories: benchmark

It is not a bug but it is something which makes
you waste some significant time just to understand
what's going on. :epkg:`asv` would refuse to detect
the benchmark I was trying to set up just because
filenames did contain dots. So, for :epkg:`asv`
don't add a file ``name.option.py`` but use
``name_option.py``.
2 changes: 1 addition & 1 deletion mlprodict/asv_benchmark/create_asv.py
Expand Up @@ -212,7 +212,7 @@ def create_asv_benchmark(
created.append(dest)
if verbose > 0 and fLOG is not None:
fLOG("[create_asv_benchmark] create 'benches/__init__.py'.")

# flask_server
tool_dir = os.path.join(location, 'tools')
if not os.path.exists(tool_dir):
Expand Down
1 change: 1 addition & 0 deletions mlprodict/asv_benchmark/template/skl_model_classifier.py
Expand Up @@ -10,6 +10,7 @@
abide by the rule of the maximum path length even though
the system is told otherwise.
"""
import numpy # pylint: disable=W0611
# Import specific to this model.
from sklearn.linear_model import LogisticRegression

Expand Down
1 change: 1 addition & 0 deletions mlprodict/asv_benchmark/template/skl_model_clustering.py
Expand Up @@ -10,6 +10,7 @@
abide by the rule of the maximum path length even though
the system is told otherwise.
"""
import numpy # pylint: disable=W0611
# Import specific to this model.
from sklearn.cluster import KMeans

Expand Down
Expand Up @@ -10,6 +10,7 @@
abide by the rule of the maximum path length even though
the system is told otherwise.
"""
import numpy # pylint: disable=W0611
# Import specific to this model.
from sklearn.ensemble import RandomForestClassifier

Expand Down
1 change: 1 addition & 0 deletions mlprodict/asv_benchmark/template/skl_model_outlier.py
Expand Up @@ -10,6 +10,7 @@
abide by the rule of the maximum path length even though
the system is told otherwise.
"""
import numpy # pylint: disable=W0611
# Import specific to this model.
from sklearn.svm import OneClassSVM

Expand Down
1 change: 1 addition & 0 deletions mlprodict/asv_benchmark/template/skl_model_regressor.py
Expand Up @@ -10,6 +10,7 @@
abide by the rule of the maximum path length even though
the system is told otherwise.
"""
import numpy # pylint: disable=W0611
# Import specific to this model.
from sklearn.linear_model import LinearRegression

Expand Down
Expand Up @@ -10,6 +10,7 @@
abide by the rule of the maximum path length even though
the system is told otherwise.
"""
import numpy # pylint: disable=W0611
# Import specific to this model.
from sklearn.cross_decomposition import PLSCanonical

Expand Down
1 change: 1 addition & 0 deletions mlprodict/asv_benchmark/template/skl_model_transform.py
Expand Up @@ -10,6 +10,7 @@
abide by the rule of the maximum path length even though
the system is told otherwise.
"""
import numpy # pylint: disable=W0611
# Import specific to this model.
from sklearn.preprocessing import Normalizer

Expand Down

0 comments on commit 1d26194

Please sign in to comment.