Giter Club home page Giter Club logo

scikit-misc's Introduction

scikit-misc

Latest Release release_
License license_
Build Status buildstatus_
Coverage coverage_
Documentation Documentation

Miscellaneous tools for data analysis and scientific computing.

Installation

Official version

$ pip install scikit-misc

Development version

$ pip install git+https://github.com/has2k1/scikit-misc.git@main

scikit-misc's People

Contributors

has2k1 avatar jarrodmillman avatar jss367 avatar penguinpee avatar stefanv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

scikit-misc's Issues

Unable to install scikit-misc (Windows 10, Python 3.8)

I cannot install scikit-misc ,
I run this in my Conda environment:
python -m pip install scikit-misc
And it is throwing a lot of error messages like:

ERROR: Command errored out with exit status 1:
  Complete output (201 lines):
  blas_opt_info:
  blas_mkl_info:
  No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
  customize MSVCCompiler
    libraries mkl_rt not found in ['C:/Users/...\\Library\\lib']
    NOT AVAILABLE
  blis_info:
    libraries blis not found in ['C:/Users/...\Library\\lib']
    NOT AVAILABLE
  openblas_info:
    libraries openblas not found in ['C:/Users/...\\Library\\lib']
  get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
  customize GnuFCompiler
  Could not locate executable g77
  Could not locate executable f77
  customize IntelVisualFCompiler
  Could not locate executable ifort
  Could not locate executable ifl

... a lot more...

ERROR: Failed building wheel for scikit-misc

Any help would be greatly appreciated.

Python 3.8
Windows 10 Pro

# Name                    Version                   Build  Channel
abseil-cpp                20210324.0           h0e60522_0    conda-forge
altair                    4.1.0                      py_1    conda-forge
argh                      0.26.2          pyh9f0ad1d_1002    conda-forge
argon2-cffi               20.1.0           py38h294d835_2    conda-forge
arrow-cpp                 4.0.0           py38heb70aae_1_cpu    conda-forge
astor                     0.8.1              pyh9f0ad1d_0    conda-forge
async_generator           1.10                       py_0    conda-forge
attrs                     21.1.0             pyhd8ed1ab_0    conda-forge
aws-c-cal                 0.5.7                h25e91e5_1    conda-forge
aws-c-common              0.5.11               h8ffe710_0    conda-forge
aws-c-event-stream        0.2.7                h9100e2b_4    conda-forge
aws-c-io                  0.9.11               ha9e6ac0_3    conda-forge
aws-checksums             0.1.11               ha9e6ac0_6    conda-forge
aws-sdk-cpp               1.8.186              h496e9c5_2    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
base58                    2.1.0              pyhd8ed1ab_0    conda-forge
bleach                    3.3.0              pyh44b312d_0    conda-forge
blinker                   1.4                        py_1    conda-forge
boto3                     1.17.68            pyhd8ed1ab_0    conda-forge
botocore                  1.20.68            pyhd8ed1ab_0    conda-forge
brotli                    1.0.9                h0e60522_4    conda-forge
brotlipy                  0.7.0           py38h294d835_1001    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
c-ares                    1.17.1               h8ffe710_1    conda-forge
ca-certificates           2020.12.5            h5b45459_0    conda-forge
cachetools                4.2.2              pyhd8ed1ab_0    conda-forge
certifi                   2020.12.5        py38haa244fe_1    conda-forge
cffi                      1.14.5           py38hd8c33c5_0    conda-forge
chardet                   4.0.0            py38haa244fe_1    conda-forge
click                     7.1.2              pyh9f0ad1d_0    conda-forge
colorama                  0.4.4              pyh9f0ad1d_0    conda-forge
cryptography              3.4.7            py38hd7da0ea_0    conda-forge
cycler                    0.10.0                   pypi_0    pypi
decorator                 5.0.7              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
descartes                 1.1.0                    pypi_0    pypi
entrypoints               0.3             pyhd8ed1ab_1003    conda-forge
et-xmlfile                1.1.0                    pypi_0    pypi
freetype                  2.10.4               h546665d_1    conda-forge
gflags                    2.2.2             ha925a31_1004    conda-forge
gitdb                     4.0.7              pyhd8ed1ab_0    conda-forge
gitpython                 3.1.15             pyhd8ed1ab_0    conda-forge
glog                      0.4.0                h0174b99_3    conda-forge
grpc-cpp                  1.37.1               hea9717d_0    conda-forge
idna                      2.10               pyh9f0ad1d_0    conda-forge
importlib-metadata        4.0.1            py38haa244fe_0    conda-forge
intel-openmp              2021.2.0           h57928b3_616    conda-forge
ipykernel                 5.5.4            py38h43734a8_0    conda-forge
ipython                   7.23.1           py38h43734a8_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.6.3              pyhd3deb0d_0    conda-forge
jedi                      0.18.0           py38haa244fe_2    conda-forge
jinja2                    2.11.3             pyh44b312d_0    conda-forge
jmespath                  0.10.0             pyh9f0ad1d_0    conda-forge
joblib                    1.0.1                    pypi_0    pypi
jpeg                      9d                   h8ffe710_0    conda-forge
jsonschema                3.2.0              pyhd8ed1ab_3    conda-forge
jupyter_client            6.1.12             pyhd8ed1ab_0    conda-forge
jupyter_core              4.7.1            py38haa244fe_0    conda-forge
jupyterlab_pygments       0.1.2              pyh9f0ad1d_0    conda-forge
jupyterlab_widgets        1.0.0              pyhd8ed1ab_1    conda-forge
kaleido                   0.2.1                    pypi_0    pypi
kiwisolver                1.3.1                    pypi_0    pypi
krb5                      1.17.2               hbae68bd_0    conda-forge
lcms2                     2.12                 h2a16943_0    conda-forge
libblas                   3.9.0                     9_mkl    conda-forge
libcblas                  3.9.0                     9_mkl    conda-forge
libcurl                   7.76.1               hf1763fc_1    conda-forge
liblapack                 3.9.0                     9_mkl    conda-forge
libpng                    1.6.37               h1d00b33_2    conda-forge
libprotobuf               3.15.8               h7755175_0    conda-forge
libsodium                 1.0.18               h8d14728_1    conda-forge
libssh2                   1.9.0                h680486a_6    conda-forge
libthrift                 0.14.1               h636ae23_1    conda-forge
libtiff                   4.2.0                hc10be44_1    conda-forge
libutf8proc               2.6.1                hcb41399_0    conda-forge
lz4-c                     1.9.3                h8ffe710_0    conda-forge
markupsafe                1.1.1            py38h294d835_3    conda-forge
matplotlib                3.4.1                    pypi_0    pypi
matplotlib-inline         0.1.2              pyhd8ed1ab_2    conda-forge
mistune                   0.8.4           py38h294d835_1003    conda-forge
mizani                    0.7.3                    pypi_0    pypi
mkl                       2021.2.0           hb70f87d_389    conda-forge
nbclient                  0.5.3              pyhd8ed1ab_0    conda-forge
nbconvert                 6.0.7            py38haa244fe_3    conda-forge
nbformat                  5.1.3              pyhd8ed1ab_0    conda-forge
nest-asyncio              1.5.1              pyhd8ed1ab_0    conda-forge
notebook                  6.3.0              pyha770c72_1    conda-forge
numpy                     1.20.2           py38h09042cb_0    conda-forge
olefile                   0.46               pyh9f0ad1d_1    conda-forge
openjpeg                  2.4.0                h48faf41_0    conda-forge
openpyxl                  3.0.7                    pypi_0    pypi
openssl                   1.1.1k               h8ffe710_0    conda-forge
packaging                 20.9               pyh44b312d_0    conda-forge
palettable                3.3.0                    pypi_0    pypi
pandas                    1.2.4            py38h60cbd38_0    conda-forge
pandoc                    2.13                 h8ffe710_0    conda-forge
pandocfilters             1.4.2                      py_1    conda-forge
parquet-cpp               1.5.1                         2    conda-forge
parso                     0.8.2              pyhd8ed1ab_0    conda-forge
patsy                     0.5.1                    pypi_0    pypi
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    8.1.2            py38h9273828_1    conda-forge
pip                       21.1.1             pyhd8ed1ab_0    conda-forge
plotly                    4.14.3                   pypi_0    pypi
plotnine                  0.8.0                    pypi_0    pypi
prometheus_client         0.10.1             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.18             pyha770c72_0    conda-forge
protobuf                  3.15.8           py38h885f38d_0    conda-forge
pyarrow                   4.0.0           py38hd38ce15_1_cpu    conda-forge
pycparser                 2.20               pyh9f0ad1d_2    conda-forge
pydeck                    0.6.2              pyh44b312d_0    conda-forge
pygments                  2.9.0              pyhd8ed1ab_0    conda-forge
pyopenssl                 20.0.1             pyhd8ed1ab_0    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyrsistent                0.17.3           py38h294d835_2    conda-forge
pysocks                   1.7.1            py38haa244fe_3    conda-forge
python                    3.8.8           h7840368_0_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python_abi                3.8                      1_cp38    conda-forge
pytz                      2021.1             pyhd8ed1ab_0    conda-forge
pywin32                   300              py38h294d835_0    conda-forge
pywinpty                  1.0.1            py38hd3f51b4_0    conda-forge
pyyaml                    5.4.1            py38h294d835_0    conda-forge
pyzmq                     22.0.3           py38h09162b1_1    conda-forge
re2                       2021.04.01           h0e60522_0    conda-forge
requests                  2.25.1             pyhd3deb0d_0    conda-forge
retrying                  1.3.3                    pypi_0    pypi
s3transfer                0.4.2              pyhd8ed1ab_0    conda-forge
scikit-learn              0.24.2                   pypi_0    pypi
scipy                     1.6.3                    pypi_0    pypi
send2trash                1.5.0                      py_0    conda-forge
setuptools                49.6.0           py38haa244fe_3    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
smmap                     3.0.5              pyh44b312d_0    conda-forge
snappy                    1.1.8                ha925a31_3    conda-forge
sqlite                    3.35.5               h8ffe710_0    conda-forge
statsmodels               0.12.2                   pypi_0    pypi
streamlit                 0.81.1             pyhd8ed1ab_0    conda-forge
streamlit-ace             0.0.4                    pypi_0    pypi
streamlit-tags            1.2.2                    pypi_0    pypi
tbb                       2021.2.0             h2d74725_0    conda-forge
terminado                 0.9.4            py38haa244fe_0    conda-forge
testpath                  0.4.4                      py_0    conda-forge
threadpoolctl             2.1.0                    pypi_0    pypi
tk                        8.6.10               h8ffe710_1    conda-forge
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
toolz                     0.11.1                     py_0    conda-forge
tornado                   6.1              py38h294d835_1    conda-forge
traitlets                 5.0.5                      py_0    conda-forge
typing_extensions         3.7.4.3                    py_0    conda-forge
tzlocal                   2.1                pyh9f0ad1d_0    conda-forge
urllib3                   1.26.4             pyhd8ed1ab_0    conda-forge
validators                0.18.2             pyhd3deb0d_0    conda-forge
vc                        14.2                 hb210afc_4    conda-forge
vs2015_runtime            14.28.29325          h5e1d092_4    conda-forge
watchdog                  2.1.0            py38haa244fe_0    conda-forge
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
webencodings              0.5.1                      py_1    conda-forge
wheel                     0.36.2             pyhd3deb0d_0    conda-forge
widgetsnbextension        3.5.1            py38haa244fe_4    conda-forge
win_inet_pton             1.1.0            py38haa244fe_2    conda-forge
wincertstore              0.2             py38haa244fe_1006    conda-forge
winpty                    0.4.3                         4    conda-forge
xz                        5.2.5                h62dcd97_1    conda-forge
yaml                      0.2.5                he774522_0    conda-forge
zeromq                    4.3.4                h0e60522_0    conda-forge
zipp                      3.4.1              pyhd8ed1ab_0    conda-forge
zlib                      1.2.11            h62dcd97_1010    conda-forge
zstd                      1.4.9                h6255e5f_0    conda-forge

ValueError: b'Extrapolation not allowed with blending'

hi,
A bug occurred when I was using scanpy for high variant gene arithmetic. I learned that the bug originated from scikit-misc, so I came to you for help.

my code:

adata.layers["counts"] = adata.X.copy() sc.pp.normalize_total(adata, target_sum=1e4) adata adata.raw = adata # keep full dimension safe sc.pp.highly_variable_genes( adata, flavor="seurat_v3",# n_top_genes=2000, layer="counts", batch_key="orig.ident", subset=True, span=1 )

error output

`ValueError Traceback (most recent call last)
Cell In[13], line 3
2 adata.raw = adata # keep full dimension safe
----> 3 sc.pp.highly_variable_genes(
4 adata,
5 flavor="seurat_v3",#
6 n_top_genes=2000,
7 layer="counts",
8 batch_key="orig.ident",
9 subset=True,
10 span=1
11 )
13 filename = 'melanoma_sw_high_var.h5ad'
14 adata.write(filename)

File ~/miniconda3/envs/scanpy/lib/python3.12/site-packages/scanpy/preprocessing/_highly_variable_genes.py:441, in highly_variable_genes(adata, layer, n_top_genes, min_disp, max_disp, min_mean, max_mean, span, n_bins, flavor, subset, inplace, batch_key, check_values)
439 sig = signature(_highly_variable_genes_seurat_v3)
440 n_top_genes = cast(int, sig.parameters["n_top_genes"].default)
--> 441 return _highly_variable_genes_seurat_v3(
442 adata,
443 layer=layer,
444 n_top_genes=n_top_genes,
445 batch_key=batch_key,
446 check_values=check_values,
447 span=span,
448 subset=subset,
449 inplace=inplace,
450 )
452 if batch_key is None:
453 df = _highly_variable_genes_single_batch(
454 adata,
455 layer=layer,
(...)
462 flavor=flavor,
463 )

File ~/miniconda3/envs/scanpy/lib/python3.12/site-packages/scanpy/preprocessing/_highly_variable_genes.py:87, in _highly_variable_genes_seurat_v3(adata, layer, n_top_genes, batch_key, check_values, span, subset, inplace)
85 x = np.log10(mean[not_const])
86 model = loess(x, y, span=span, degree=2)
---> 87 model.fit()
88 estimat_var[not_const] = model.outputs.fitted_values
89 reg_std = np.sqrt(10**estimat_var)

File _loess.pyx:927, in _loess.loess.fit()

ValueError: b'Extrapolation not allowed with blending'`

`meson setup` fails for 0.3.0

I went about updating scikit-misc for Fedora to 0.3.0. During the build I hit the following error:

  ../skmisc/meson.build:22:15: ERROR: Command `/usr/bin/python3 -c 'import os
  os.chdir(os.path.join("..", "tools"))
  import numpy as np
  try:
    incdir = os.path.relpath(np.get_include())
  except Exception:
    incdir = np.get_include()
  print(incdir)
  '` failed with status 1.

NumPy is at version 1.24.4 currently and meson-python at version 0.14.0.

unable to save the model with pickle

Hi,

I tried to save the model using pickle and I get the error TypeError: self._base cannot be converted to a Python object for pickling.

from skmisc.loess import loess
import numpy as np
import pickle

span_val = 0.1

x = np.random.random_sample((1000,))
y = np.random.random_sample((1000,))
model = loess(x,
             y, 
             span=span_val,                 
             normalize=False,
             surface="direct",
             family="gaussian",
)
model.fit()

pickle.dumps(model)

I succeded using skops but once I load the model I get Error: Segmentation fault (core dumped)

from skmisc.loess import loess
import numpy as np
import skops.io as sio

span_val = 0.1

x = np.random.random_sample((1000,))
y = np.random.random_sample((1000,))

model = loess(x,
             y, 
             span=span_val,                 
             normalize=False,
             surface="direct",
             family="gaussian",
)
model.fit()

sio.dump(model, "./model.skops", compression=0)

unknown_types = sio.get_untrusted_types(file="model.skops")

model_loaded = sio.load("./model.skops", trusted=unknown_types)
model_loaded.predict(x)

I use python 3.10.9 on Ubuntu 20.04.

Thank you for your help and for the library.

different loess preds on different systems

Linux:

Screen Shot 2020-05-06 at 1 56 50 PM

Mac:

Screen Shot 2020-05-06 at 1 57 09 PM

I can give more architecture details but maybe there's something I'm missing? The input arrays are have about 16,000 samples.

def _loess(y, x, span=0.3):

    from skmisc.loess import loess

    model = loess(x, y, span=span, degree=2)
    model.fit()
    y_est = model.predict(x).values

    return y_est

Fail to install scikit-misc on Apple M1

Hi.

I am trying to install scikit-misc on an Apple M1 macbook. However I am not succeeding in doing so with pip install. I tried conda install -c conda-forge scikit-misc as instructed on this page. However this fails as well as the package is not being found on the available channels:
Screen Shot 2022-06-02 at 10 14 00 AM

I am using a conda environment using miniconda.

Are there no sciki-misc wheels/binaries available for osx-arm64? I only see osx-64 here.

Thanks ahead.

Different errors in local build vs official wheels

The official build fails to error out for the problematic input. In this case, the span is too small. If the confidence intervals are to be computed, you end up in what appears to be an infinite loop.

code

import numpy as np
from skmisc.loess import loess

x = np.arange(10)
y = np.array([1, 2, 3, 4, 4, 5, 6, 7, 8, 9])

xseq = np.array([3, 9])
xseq = np.linspace(3, 9, 80)

lo = loess(x[3:], y[3:], weights=None, span=2/3)
lo.fit()

prediction = lo.predict(xseq, stderror=True)
#ci = prediction.confidence(alpha=0.05)  # <-- creates infinite loop in official build
print(prediction)

Results

  1. Local build
----------------------------------------------------------------------
ValueError                           Traceback (most recent call last)
<ipython-input-16-5c0006fdf08b> in <module>()
      8 
      9 lo = loess(x[3:], y[3:], weights=None, span=2/3)
---> 10 lo.fit()
     11 
     12 prediction = lo.predict(xseq, stderror=True)

_loess.pyx in _loess.loess.fit (skmisc/loess/src/_loess.c:10688)()

ValueError: b'Chernobyl! trL>n 7\n'
  1. Official build
-------
Predicted values      : [ 4.          3.96490947  3.93558725  3.91203333  3.89424772  3.88223041
  3.87598141  3.87550072  3.88078834  3.89184426  3.90866848  3.93126102
  3.95962186  3.993751    4.03552457  4.08765838  4.14891925  4.2179929
  4.29356501  4.3743213   4.45894747  4.54612921  4.63455224  4.72290225
  4.80986494  4.89412602  4.9743712   5.05063291  5.12658228  5.20253165
  5.27848101  5.35443038  5.43037975  5.50632911  5.58227848  5.65822785
  5.73417722  5.81012658  5.88607595  5.96202532  6.03797468  6.11392405
  6.18987342  6.26582278  6.34177215  6.41772152  6.49367089  6.56962025
  6.64556962  6.72151899  6.79746835  6.87341772  6.94936709  7.02531646
  7.10126582  7.17721519  7.25316456  7.32911392  7.40506329  7.48101266
  7.55696203  7.63291139  7.70886076  7.78481013  7.86075949  7.93670886
  8.01265823  8.08860759  8.16455696  8.24050633  8.3164557   8.39240506
  8.46835443  8.5443038   8.62025316  8.69620253  8.7721519   8.84810127
  8.92405063  9.        ]

Predicted std error   : [ inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf
  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf
  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf
  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf
  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf  inf
  inf  inf  inf  inf  inf]

Residual scale        : inf
Degrees of freedom    : nan

The bad values for the standard error, residual scale and degrees of problems are likely
the mechanical cause of the infinite loop. The predicted values look reasonable given the
in put data, but should we trust them? stderror=False for the local build still errors out.

This is most likely caused by a difference in compiler versions and/or settings.

No changelog for 0.2.0 release

I have been notified of the latest release (0.2.0) on PyPI. However, there's no changelog entry. I believe the switch to Meson deserves some mention. I haven't tried building 0.2.0 yet. Time permitting, I will look into this over the weekend.

Running setup.py install for scikit-misc did not run successfully.

C:\Users\17621802479>pip install scikit-misc
Collecting scikit-misc
Using cached scikit-misc-0.1.4.tar.gz (852 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in d:\python相关\python\lib\site-packages (from scikit-misc) (1.23.2)
Using legacy 'setup.py install' for scikit-misc, since package 'wheel' is not installed.
Installing collected packages: scikit-misc
Running setup.py install for scikit-misc ... error
error: subprocess-exited-with-error

× Running setup.py install for scikit-misc did not run successfully.
│ exit code: 1
╰─> [230 lines of output]
C:\Users\17621802479\AppData\Local\Temp\pip-install-21mv2hsl\scikit-misc_357780ddc9f042a697af0739917fb7f7\setup.py:144: DeprecationWarning:

    `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
    of the deprecation of `distutils` itself. It will be removed for
    Python >= 3.12. For older Python versions it will remain present.
    It is recommended to use `setuptools < 60.0` for those Python versions.
    For more details, see:
      https://numpy.org/devdocs/reference/distutils_status_migration.html


    from numpy.distutils.core import setup, numpy_cmdclass
  D:\python相关\python\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
    warnings.warn(
  WARNING: The wheel package is not available.
  INFO: blas_opt_info:
  INFO: blas_armpl_info:
  INFO: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
  INFO: customize MSVCCompiler
  INFO:   libraries armpl_lp64_mp not found in ['D:\\python相关\\python\\lib', 'C:\\', 'D:\\python相关\\python\\libs']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: blas_mkl_info:
  INFO:   libraries mkl_rt not found in ['D:\\python相关\\python\\lib', 'C:\\', 'D:\\python相关\\python\\libs']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: blis_info:
  INFO:   libraries blis not found in ['D:\\python相关\\python\\lib', 'C:\\', 'D:\\python相关\\python\\libs']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: openblas_info:
  INFO:   libraries openblas not found in ['D:\\python相关\\python\\lib', 'C:\\', 'D:\\python相关\\python\\libs']
  INFO: get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
  INFO: customize GnuFCompiler
  WARN: Could not locate executable g77
  WARN: Could not locate executable f77
  INFO: customize IntelVisualFCompiler
  WARN: Could not locate executable ifort
  WARN: Could not locate executable ifl
  INFO: customize AbsoftFCompiler
  WARN: Could not locate executable f90
  INFO: customize CompaqVisualFCompiler
  WARN: Could not locate executable DF
  INFO: customize IntelItaniumVisualFCompiler
  WARN: Could not locate executable efl
  INFO: customize Gnu95FCompiler
  WARN: Could not locate executable gfortran
  WARN: Could not locate executable f95
  INFO: customize G95FCompiler
  WARN: Could not locate executable g95
  INFO: customize IntelEM64VisualFCompiler
  INFO: customize IntelEM64TFCompiler
  WARN: Could not locate executable efort
  WARN: Could not locate executable efc
  INFO: customize PGroupFlangCompiler
  WARN: Could not locate executable flang
  WARN: don't know how to compile Fortran code on platform 'nt'
  INFO:   NOT AVAILABLE
  INFO:
  INFO: accelerate_info:
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_3_10_blas_threads_info:
  INFO: Setting PTATLAS=ATLAS
  INFO:   libraries tatlas not found in ['D:\\python相关\\python\\lib', 'C:\\', 'D:\\python相关\\python\\libs']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_3_10_blas_info:
  INFO:   libraries satlas not found in ['D:\\python相关\\python\\lib', 'C:\\', 'D:\\python相关\\python\\libs']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_blas_threads_info:
  INFO: Setting PTATLAS=ATLAS
  INFO:   libraries ptf77blas,ptcblas,atlas not found in ['D:\\python相关\\python\\lib', 'C:\\', 'D:\\python相关\\python\\libs']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_blas_info:
  INFO:   libraries f77blas,cblas,atlas not found in ['D:\\python相关\\python\\lib', 'C:\\', 'D:\\python相关\\python\\libs']
  INFO:   NOT AVAILABLE
  INFO:
  D:\python相关\python\lib\site-packages\numpy\distutils\system_info.py:2077: UserWarning:
      Optimized (vendor) Blas libraries are not found.
      Falls back to netlib Blas library which has worse performance.
      A better performance should be easily gained by switching
      Blas library.
    if self._calc_info(blas):
  INFO: blas_info:
  INFO:   libraries blas not found in ['D:\\python相关\\python\\lib', 'C:\\', 'D:\\python相关\\python\\libs']
  INFO:   NOT AVAILABLE
  INFO:
  D:\python相关\python\lib\site-packages\numpy\distutils\system_info.py:2077: UserWarning:
      Blas (http://www.netlib.org/blas/) libraries not found.
      Directories to search for the libraries can be specified in the
      numpy/distutils/site.cfg file (section [blas]) or by setting
      the BLAS environment variable.
    if self._calc_info(blas):
  INFO: blas_src_info:
  INFO:   NOT AVAILABLE
  INFO:
  D:\python相关\python\lib\site-packages\numpy\distutils\system_info.py:2077: UserWarning:
      Blas (http://www.netlib.org/blas/) sources not found.
      Directories to search for the sources can be specified in the
      numpy/distutils/site.cfg file (section [blas_src]) or by setting
      the BLAS_SRC environment variable.
    if self._calc_info(blas):
  INFO:   NOT AVAILABLE
  INFO:
  running install
  D:\python相关\python\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
    warnings.warn(
  running build
  running config_cc
  INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  INFO: build_src
  INFO: building py_modules sources
  INFO: building library "floess" sources
  INFO: building extension "skmisc.loess._loess" sources
  INFO: building data_files sources
  INFO: build_src: building npy-pkg config files
  running build_py
  creating build\lib.win-amd64-cpython-310
  creating build\lib.win-amd64-cpython-310\skmisc
  copying skmisc\setup.py -> build\lib.win-amd64-cpython-310\skmisc
  copying skmisc\_version.py -> build\lib.win-amd64-cpython-310\skmisc
  copying skmisc\__config__.py -> build\lib.win-amd64-cpython-310\skmisc
  copying skmisc\__init__.py -> build\lib.win-amd64-cpython-310\skmisc
  copying build\src.win-amd64-3.10\skmisc\__config__.py -> build\lib.win-amd64-cpython-310\skmisc
  creating build\lib.win-amd64-cpython-310\skmisc\loess
  copying skmisc\loess\setup.py -> build\lib.win-amd64-cpython-310\skmisc\loess
  copying skmisc\loess\__init__.py -> build\lib.win-amd64-cpython-310\skmisc\loess
  creating build\lib.win-amd64-cpython-310\skmisc\loess\tests
  copying skmisc\loess\tests\test_loess.py -> build\lib.win-amd64-cpython-310\skmisc\loess\tests
  copying skmisc\loess\tests\__init__.py -> build\lib.win-amd64-cpython-310\skmisc\loess\tests
  UPDATING build\lib.win-amd64-cpython-310\skmisc/_version.py
  set build\lib.win-amd64-cpython-310\skmisc/_version.py to '0.1.4'
  running build_clib
  INFO: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
  INFO: customize MSVCCompiler
  INFO: customize MSVCCompiler using build_clib
  INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (/O2)
  creating C:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python相关
  creating C:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python相关\python
  creating C:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python相关\python\Lib
  creating C:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python相关\python\Lib\site-packages
  creating C:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python相关\python\Lib\site-packages\numpy
  creating C:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python相关\python\Lib\site-packages\numpy\distutils
  creating C:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python相关\python\Lib\site-packages\numpy\distutils\checks
  INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (/WX)
  WARN: CCompilerOpt.__init__[1240] : feature 'AVX512_KNL' is disabled, MSVC compiler doesn't support it
  WARN: CCompilerOpt.__init__[1240] : feature 'AVX512_KNM' is disabled, MSVC compiler doesn't support it
  INFO: CCompilerOpt.__init__[1782] : check requested baseline
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE' with flags ()
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE2' with flags ()
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE3' with flags ()
  INFO: CCompilerOpt.__init__[1791] : check requested dispatch-able features
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE41' with flags ()
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'POPCNT' with flags ()
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSSE3' with flags ()
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE42' with flags ()
  INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (/arch:AVX)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX' with flags (/arch:AVX)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'F16C' with flags (/arch:AVX)
  INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (/arch:AVX2)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX2' with flags (/arch:AVX2)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'FMA3' with flags (/arch:AVX2)
  INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (/arch:AVX512)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_SKX' with flags (/arch:AVX512)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_CNL' with flags (/arch:AVX512)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512CD' with flags (/arch:AVX512)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_CLX' with flags (/arch:AVX512)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512F' with flags (/arch:AVX512)
  INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_ICL' with flags (/arch:AVX512)
  WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (D:\Visual Studio 2017\vs2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\Visual Studio 2017\vs2017\VC\Tools\MSVC\14.16.27023\ATLMFC\include -ID:\Visual Studio 2017\vs2017\VC\Tools\MSVC\14.16.27023\include -ID:\Windows Kits\10\include\10.0.17763.0\ucrt -ID:\Windows Kits\10\include\10.0.17763.0\shared -ID:\Windows Kits\10\include\10.0.17763.0\um -ID:\Windows Kits\10\include\10.0.17763.0\winrt -ID:\Windows Kits\10\include\10.0.17763.0\cppwinrt /TcD:\python相关\python\Lib\site-packages\numpy\distutils\checks\cpu_avx512_icl.c /FoC:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python 相关\python\Lib\site-packages\numpy\distutils\checks\cpu_avx512_icl.obj /arch:AVX512 /WX) failed with exit status 2 output ->
  cpu_avx512_icl.c
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\cpu_avx512_icl.c(20): error C2220: 警告被视为错误 - 没有生成“object”文件
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\cpu_avx512_icl.c(20): warning C4013: “_mm512_shrdv_epi64”未定义;假设外部返回 int
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\cpu_avx512_icl.c(20): error C2440: “=”: 无法从“int”转换为“__m512i”
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\cpu_avx512_icl.c(22): warning C4013: “_mm512_popcnt_epi8”未定义;假设外部返回 int
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\cpu_avx512_icl.c(22): error C2440: “=”: 无法从“int”转换为“__m512i”
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\cpu_avx512_icl.c(24): warning C4013: “_mm512_popcnt_epi64”未定义;假设外部返回 int
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\cpu_avx512_icl.c(24): error C2440: “=”: 无法从“int”转换为“__m512i”

  WARN: CCompilerOpt.feature_test[1563] : testing failed
  INFO: CCompilerOpt.__init__[1803] : skip features (SSE2 SSE3 SSE) since its part of baseline
  INFO: CCompilerOpt.__init__[1807] : initialize targets groups
  INFO: CCompilerOpt.__init__[1809] : parse target group simd_test
  INFO: CCompilerOpt._parse_target_tokens[2020] : skip targets (VXE VSX4 VXE2 ASIMD VSX2 VSX FMA4 XOP NEON VX VSX3) not part of baseline or dispatch-able features
  INFO: CCompilerOpt._parse_policy_not_keepbase[2132] : skip baseline features (SSE2)
  INFO: CCompilerOpt.generate_dispatch_header[2353] : generate CPU dispatch header: (build\src.win-amd64-3.10\numpy\distutils\include\npy_cpu_dispatch_config.h)
  WARN: CCompilerOpt.generate_dispatch_header[2362] : dispatch header dir build\src.win-amd64-3.10\numpy\distutils\include does not exist, creating it
  INFO: CCompilerOpt.feature_extra_checks[1627] : Testing extra checks for feature 'AVX512F' (AVX512F_REDUCE)
  INFO: CCompilerOpt.feature_extra_checks[1627] : Testing extra checks for feature 'AVX512_SKX' (AVX512BW_MASK AVX512DQ_MASK)
  WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (D:\Visual Studio 2017\vs2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\Visual Studio 2017\vs2017\VC\Tools\MSVC\14.16.27023\ATLMFC\include -ID:\Visual Studio 2017\vs2017\VC\Tools\MSVC\14.16.27023\include -ID:\Windows Kits\10\include\10.0.17763.0\ucrt -ID:\Windows Kits\10\include\10.0.17763.0\shared -ID:\Windows Kits\10\include\10.0.17763.0\um -ID:\Windows Kits\10\include\10.0.17763.0\winrt -ID:\Windows Kits\10\include\10.0.17763.0\cppwinrt /TcD:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512bw_mask.c /FoC:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512bw_mask.obj /arch:AVX512 /WX) failed with exit status 2 output ->
  extra_avx512bw_mask.c
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512bw_mask.c(12): error C2220: 警告被视为错误 - 没有生成“object”文件
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512bw_mask.c(12): warning C4013: “_kor_mask64”未定义;假设外部返回 int
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512bw_mask.c(13): warning C4013: “_kxor_mask64”未定义;假设外部返回 int
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512bw_mask.c(14): warning C4013: “_cvtu64_mask64”未定义;假设外部返回 int
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512bw_mask.c(14): warning C4013: “_cvtmask64_u64”未定义;假设外部返回 int

  WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (D:\Visual Studio 2017\vs2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\Visual Studio 2017\vs2017\VC\Tools\MSVC\14.16.27023\ATLMFC\include -ID:\Visual Studio 2017\vs2017\VC\Tools\MSVC\14.16.27023\include -ID:\Windows Kits\10\include\10.0.17763.0\ucrt -ID:\Windows Kits\10\include\10.0.17763.0\shared -ID:\Windows Kits\10\include\10.0.17763.0\um -ID:\Windows Kits\10\include\10.0.17763.0\winrt -ID:\Windows Kits\10\include\10.0.17763.0\cppwinrt /TcD:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512dq_mask.c /FoC:\Users\176218~1\AppData\Local\Temp\tmpzcrd2haj\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512dq_mask.obj /arch:AVX512 /WX) failed with exit status 2 output ->
  extra_avx512dq_mask.c
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512dq_mask.c(12): error C2220: 警告被视为错误 - 没有生成“object”文件
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512dq_mask.c(12): warning C4013: “_kor_mask8”未定义;假设外部返回 int
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512dq_mask.c(13): warning C4013: “_kxor_mask8”未定义;假设外部返回 int
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512dq_mask.c(14): warning C4013: “_cvtu32_mask8”未定义;假设外部返回 int
  D:\python相关\python\Lib\site-packages\numpy\distutils\checks\extra_avx512dq_mask.c(14): warning C4013: “_cvtmask8_u32”未定义;假设外部返回 int

  WARN: CCompilerOpt.feature_extra_checks[1645] : testing failed for checks (AVX512BW_MASK AVX512DQ_MASK)
  INFO: building 'floess' library
  error: library floess has Fortran sources but no Fortran compiler found
  INFO:
  ########### CLIB COMPILER OPTIMIZATION ###########
  INFO: Platform      :
    Architecture: x64
    Compiler    : msvc

  CPU baseline  :
    Requested   : 'min'
    Enabled     : SSE SSE2 SSE3
    Flags       : none
    Extra checks: none

  CPU dispatch  :
    Requested   : 'max -xop -fma4'
    Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_SKX AVX512_CLX AVX512_CNL
    Generated   : none
  INFO: CCompilerOpt.cache_flush[857] : write cache to path -> C:\Users\17621802479\AppData\Local\Temp\pip-install-21mv2hsl\scikit-misc_357780ddc9f042a697af0739917fb7f7\build\temp.win-amd64-cpython-310\ccompiler_opt_cache_clib.py
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> scikit-misc

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

[notice] A new release of pip available: 22.2.1 -> 22.2.2
[notice] To update, run: python.exe -m pip install --upgrade pip

"segmentation fault" with huge loess stat_smooth (from plotnine)

I'm quite sure this is an issue of scikit-misc so I file it here.
I ran into the following why doing plots with https://github.com/has2k1/plotnine.

#!/usr/bin/env python3

import numpy as np
import pandas as pd
from plotnine import *

time_int   = np.array(range(30000))
time_float = np.linspace(0, 500, 30000)
values = np.random.randint(1, 1000, 30000)

df = pd.DataFrame({'time_int': time_int, 'time_float': time_float, 'values': values})
df.info()

plot1 = ggplot(df, aes(x='time_int', y='values')) \
        + stat_smooth(method='loess')

plot2 = ggplot(df, aes(x='time_float', y='values')) \
        + stat_smooth(method='loess')

# print(plot1) # gives 'out of memory'
print(plot2) # crashes with segfault

With print(plot1) this prints:

<class 'pandas.core.frame.DataFrame'>
RangeIndex: 30000 entries, 0 to 29999
Data columns (total 3 columns):
time_float    30000 non-null float64
time_int      30000 non-null int64
values        30000 non-null int64
dtypes: float64(1), int64(2)
memory usage: 703.2 KB
[skmisc/loess/src/misc.c:34] Out of memory (7200000000 bytes)

With print(plot2) this prints:

<class 'pandas.core.frame.DataFrame'>
RangeIndex: 30000 entries, 0 to 29999
Data columns (total 3 columns):
time_float    30000 non-null float64
time_int      30000 non-null int64
values        30000 non-null int64
dtypes: float64(1), int64(2)
memory usage: 703.2 KB
zsh: segmentation fault (core dumped)  ./test.py

ImportError: DLL load failed

Hi,
I'm on windows and using a pipenv environment.
The installation with pipenv install was successful and everythink is located in the X:\Users\XYZ.virtualenvs\meret-LhVWc3ru\Lib\site-packages\skmisc\loess
However, an error occured and i have no idea how to solve it:

File "X:\Users\XYZ\.virtualenvs\meret-LhVWc3ru\lib\site-packages\skmisc\loess\__init__.py", line 51, in <module>
    from ._loess import (loess, loess_model, loess_inputs, loess_control,
ImportError: DLL load failed: The specified module could not be found.

I tried to include the location "site-packages\skmisc\loess_loess.cp36-win_amd64.pyd" to the windows path variable but no success. Why is this file not found by python?

wishlist: spelling errors

Hi,

I was building a Debian package for scikit-misc and Debian's packaging lint tool spotted some typos.

A patch was the easiest way to point them out.

--- a/skmisc/loess/src/_loess.pyx
+++ b/skmisc/loess/src/_loess.pyx
@@ -87,14 +87,14 @@
         elif x.ndim == 2:
             p = x.shape[1]
         else:
-            raise ValueError("The array of indepedent varibales "
+            raise ValueError("The array of independent variables "
                              "should be 2D at most!")
 
         if y.ndim != 1:
             raise ValueError("The array of dependent variables "
                              "should be 1D.")
         elif n != len(y):
-            raise ValueError("The independent and depedent varibales "
+            raise ValueError("The independent and dependent variables "
                              "should have the same number of "
                              "observations.")

Failing to compile loess in Python 3.7

I'm trying to build scikit-misc.

Cython 0.29.17
scikit-misc- 0.1.1
CPython 3.7
NixOS 20.09(pre)

This issue might be related to cython/cython#1955.

Building wheels for collected packages: scikit-misc
  Building wheel for scikit-misc (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /nix/store/vs4vj1yzqj1bkcqkf3b6sxm6jfy1gb4j-python3-3.7.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/build/pip-req-build-r8ke0ly9/setup.py'"'"'; __file__='"'"'/build/pip-req-build-r8ke0ly9/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /build/pip-wheel-j5poygq3
       cwd: /build/pip-req-build-r8ke0ly9/
  Complete output (321 lines):
  blas_opt_info:
  blas_mkl_info:
  customize UnixCCompiler
    libraries mkl_rt not found in ['/nix/store/vs4vj1yzqj1bkcqkf3b6sxm6jfy1gb4j-python3-3.7.7/lib']
    NOT AVAILABLE

  blis_info:
    libraries blis not found in ['/nix/store/vs4vj1yzqj1bkcqkf3b6sxm6jfy1gb4j-python3-3.7.7/lib']
    NOT AVAILABLE

  openblas_info:
  C compiler: gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

  creating /build/tmpixtzsppz/build
  creating /build/tmpixtzsppz/build/tmpixtzsppz
  compile options: '-c'
  gcc: /build/tmpixtzsppz/source.c
  gcc /build/tmpixtzsppz/build/tmpixtzsppz/source.o -L/nix/store/rcgc63zy9mc9vz76p16ylqjsnmadnmrk-openblas-0.3.8/lib -lopenblas -o /build/tmpixtzsppz/a.out
    FOUND:
      libraries = ['openblas', 'openblas']
      library_dirs = ['/nix/store/rcgc63zy9mc9vz76p16ylqjsnmadnmrk-openblas-0.3.8/lib']
      language = c
      define_macros = [('HAVE_CBLAS', None)]

    FOUND:
      libraries = ['openblas', 'openblas']
      library_dirs = ['/nix/store/rcgc63zy9mc9vz76p16ylqjsnmadnmrk-openblas-0.3.8/lib']
      language = c
      define_macros = [('HAVE_CBLAS', None)]

  running bdist_wheel
  The [wheel] section is deprecated. Use [bdist_wheel] instead.
  running build
  running config_cc
  unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  build_src
  building py_modules sources
  building library "floess" sources
  building extension "skmisc.loess._loess" sources
  building data_files sources
  build_src: building npy-pkg config files
  running build_py
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/skmisc
  copying skmisc/_version.py -> build/lib.linux-x86_64-3.7/skmisc
  copying skmisc/__init__.py -> build/lib.linux-x86_64-3.7/skmisc
  copying skmisc/__config__.py -> build/lib.linux-x86_64-3.7/skmisc
  copying skmisc/setup.py -> build/lib.linux-x86_64-3.7/skmisc
  copying build/src.linux-x86_64-3.7/skmisc/__config__.py -> build/lib.linux-x86_64-3.7/skmisc
  creating build/lib.linux-x86_64-3.7/skmisc/loess
  copying skmisc/loess/__init__.py -> build/lib.linux-x86_64-3.7/skmisc/loess
  copying skmisc/loess/setup.py -> build/lib.linux-x86_64-3.7/skmisc/loess
  creating build/lib.linux-x86_64-3.7/skmisc/loess/tests
  copying skmisc/loess/tests/__init__.py -> build/lib.linux-x86_64-3.7/skmisc/loess/tests
  copying skmisc/loess/tests/test_loess.py -> build/lib.linux-x86_64-3.7/skmisc/loess/tests
  UPDATING build/lib.linux-x86_64-3.7/skmisc/_version.py
  set build/lib.linux-x86_64-3.7/skmisc/_version.py to '0.1.1'
  running build_clib
  customize UnixCCompiler
  customize UnixCCompiler using build_clib
  get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
  customize Gnu95FCompiler
  Found executable /nix/store/m3b8gs0ykgc6ij8k270893ir125l63h5-gfortran-wrapper-9.3.0/bin/gfortran
  Found executable /nix/store/m3b8gs0ykgc6ij8k270893ir125l63h5-gfortran-wrapper-9.3.0/bin/ld
  Found executable /nix/store/sq2b0dqlq243mqn4ql5h36xmpplyy20k-binutils-2.31.1/bin/ar
  Found executable /nix/store/sq2b0dqlq243mqn4ql5h36xmpplyy20k-binutils-2.31.1/bin/ranlib
  customize Gnu95FCompiler
  customize Gnu95FCompiler using build_clib
  building 'floess' library
  compiling Fortran sources
  Fortran f77 compiler: /nix/store/m3b8gs0ykgc6ij8k270893ir125l63h5-gfortran-wrapper-9.3.0/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
  Fortran f90 compiler: /nix/store/m3b8gs0ykgc6ij8k270893ir125l63h5-gfortran-wrapper-9.3.0/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
  Fortran fix compiler: /nix/store/m3b8gs0ykgc6ij8k270893ir125l63h5-gfortran-wrapper-9.3.0/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/skmisc
  creating build/temp.linux-x86_64-3.7/skmisc/loess
  creating build/temp.linux-x86_64-3.7/skmisc/loess/src
  compile options: '-I/nix/store/kdl58n56r1inmyrb44k3nx2qjv05gmsn-python3.7-numpy-1.18.3/lib/python3.7/site-packages/numpy/core/include -c'
  gfortran:f77: skmisc/loess/src/loessf.f
  gfortran:f77: skmisc/loess/src/linpack_lite.f
  f951: Warning: command line option ‘-Wformat=1’ is valid for C/C++/ObjC/ObjC++ but not for Fortran
  f951: Warning: command line option ‘-Wformat-security’ is valid for C/C++/ObjC/ObjC++ but not for Fortran
  f951: Warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for Fortran
  f951: Warning: command line option ‘-Wformat=1’ is valid for C/C++/ObjC/ObjC++ but not for Fortran
  f951: Warning: command line option ‘-Wformat-security’ is valid for C/C++/ObjC/ObjC++ but not for Fortran
  f951: Warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for Fortran
  skmisc/loess/src/linpack_lite.f:381:31:

    381 |       double precision ddot,t,r
        |                               1
  Warning: Unused variable ‘r’ declared at (1) [-Wunused-variable]
  skmisc/loess/src/loessf.f:59:14:

     59 |             j=DBLE(j)/2.D0
        |              1
  Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
  skmisc/loess/src/loessf.f:1893:14:

   1893 |             m=DBLE(l+u)/2.D0
        |              1
  Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
  skmisc/loess/src/loessf.f:1398:20:

   1398 |                   i=phi(pi(ii))
        |                    1
  Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
  skmisc/loess/src/loessf.f:927:12:

    927 |          lg=DBLE(lg)/2.D0
        |            1
  Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
  skmisc/loess/src/loessf.f:522:22:

    522 |       if(deg.eq.2) dk=dble((d+2)*(d+1))/2.d0
        |                      1
  Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
  skmisc/loess/src/loessf.f:1204:13:

   1204 |       ifloor=x
        |             1
  Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
  skmisc/loess/src/loessf.f:834:22:

    834 |       if(deg.eq.2) dk=dble((d+2)*(d+1))/2.d0
        |                      1
  Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
  skmisc/loess/src/loessf.f:1582:18:

   1582 |                i1=dble((d+2)*(d+1))/2.d0
        |                  1
  Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
  skmisc/loess/src/loessf.f:472:25:

    472 |       subroutine ehg133(n,d,vc,nvmax,nc,ncmax,a,c,hi,lo,v,vval,xi,m,z,s)
        |                         1
  Warning: Unused dummy argument ‘n’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:472:39:

    472 |       subroutine ehg133(n,d,vc,nvmax,nc,ncmax,a,c,hi,lo,v,vval,xi,m,z,s)
        |                                       1
  Warning: Unused dummy argument ‘nc’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:827:31:

    827 |       subroutine ehg197(deg,tau,d,f,dk,trl)
        |                               1
  Warning: Unused dummy argument ‘tau’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1984:31:

   1984 |       subroutine ehg137(z,kappa,leaf,nleaf,d,nv,nvmax,ncmax,a,xi,lo,hi)
        |                               1
  Warning: Unused dummy argument ‘kappa’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1984:47:

   1984 |       subroutine ehg137(z,kappa,leaf,nleaf,d,nv,nvmax,ncmax,a,xi,lo,hi)
        |                                               1
  Warning: Unused dummy argument ‘nv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1984:53:

   1984 |       subroutine ehg137(z,kappa,leaf,nleaf,d,nv,nvmax,ncmax,a,xi,lo,hi)
        |                                                     1
  Warning: Unused dummy argument ‘nvmax’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1497:50:

   1497 |       subroutine lowesb(xx,yy,ww,diagl,infl,iv,liv,lv,wv)
        |                                                  1
  Warning: Unused dummy argument ‘liv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1497:53:

   1497 |       subroutine lowesb(xx,yy,ww,diagl,infl,iv,liv,lv,wv)
        |                                                     1
  Warning: Unused dummy argument ‘lv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1648:30:

   1648 |       subroutine lowese(iv,liv,lv,wv,m,z,s)
        |                              1
  Warning: Unused dummy argument ‘liv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1648:33:

   1648 |       subroutine lowese(iv,liv,lv,wv,m,z,s)
        |                                 1
  Warning: Unused dummy argument ‘lv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1667:39:

   1667 |       subroutine lowesf(xx,yy,ww,iv,liv,lv,wv,m,z,l,ihat,s)
        |                                       1
  Warning: Unused dummy argument ‘liv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1667:42:

   1667 |       subroutine lowesf(xx,yy,ww,iv,liv,lv,wv,m,z,l,ihat,s)
        |                                          1
  Warning: Unused dummy argument ‘lv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1699:30:

   1699 |       subroutine lowesl(iv,liv,lv,wv,m,z,l)
        |                              1
  Warning: Unused dummy argument ‘liv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1699:33:

   1699 |       subroutine lowesl(iv,liv,lv,wv,m,z,l)
        |                                 1
  Warning: Unused dummy argument ‘lv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1721:33:

   1721 |       subroutine lowesr(yy,iv,liv,lv,wv)
        |                                 1
  Warning: Unused dummy argument ‘liv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/loessf.f:1721:36:

   1721 |       subroutine lowesr(yy,iv,liv,lv,wv)
        |                                    1
  Warning: Unused dummy argument ‘lv’ at (1) [-Wunused-dummy-argument]
  skmisc/loess/src/linpack_lite.f:379:0:

    379 |       integer i,iter,j,jobu,k,kase,kk,l,ll,lls,lm1,lp1,ls,lu,m,maxit,
        |
  Warning: ‘ls’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  skmisc/loess/src/linpack_lite.f:379:0: Warning: ‘l’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  ar: adding 2 object files to build/temp.linux-x86_64-3.7/libfloess.a
  running build_ext
  customize UnixCCompiler
  customize UnixCCompiler using build_ext
  resetting extension 'skmisc.loess._loess' language from 'c' to 'f77'.
  get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
  customize Gnu95FCompiler
  customize Gnu95FCompiler
  customize Gnu95FCompiler using build_ext
  building 'skmisc.loess._loess' extension
  compiling C sources
  C compiler: gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

  compile options: '-DHAVE_CBLAS -I/nix/store/kdl58n56r1inmyrb44k3nx2qjv05gmsn-python3.7-numpy-1.18.3/lib/python3.7/site-packages/numpy/core/include -I/nix/store/vs4vj1yzqj1bkcqkf3b6sxm6jfy1gb4j-python3-3.7.7/include/python3.7m -c'
  gcc: skmisc/loess/src/_loess.c
  gcc: skmisc/loess/src/loess.cgcc: skmisc/loess/src/misc.c
  gcc: skmisc/loess/src/loessc.cgcc: skmisc/loess/src/predict.c


  skmisc/loess/src/misc.c: In function ‘d1mach_’:
  skmisc/loess/src/misc.c:321:1: warning: control reaches end of non-void function [-Wreturn-type]
    321 | }
        | ^
  skmisc/loess/src/loess.c: In function ‘loess_’:
  skmisc/loess/src/loess.c:187:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
    187 |     for(i = 0; i < N; i++)
        |     ^~~
  skmisc/loess/src/loess.c:189:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    189 |         for(i = 0; i < (N * D); i++)
        |         ^~~
  In file included from /nix/store/kdl58n56r1inmyrb44k3nx2qjv05gmsn-python3.7-numpy-1.18.3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832,
                   from /nix/store/kdl58n56r1inmyrb44k3nx2qjv05gmsn-python3.7-numpy-1.18.3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                   from /nix/store/kdl58n56r1inmyrb44k3nx2qjv05gmsn-python3.7-numpy-1.18.3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from skmisc/loess/src/_loess.c:274:
  /nix/store/kdl58n56r1inmyrb44k3nx2qjv05gmsn-python3.7-numpy-1.18.3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     17 | #warning "Using deprecated NumPy API, disable it with " \
        |  ^~~~~~~
  skmisc/loess/src/_loess.c: In function ‘__Pyx__ExceptionSave’:
  skmisc/loess/src/_loess.c:17432:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
  17432 |     *type = tstate->exc_type;
        |                     ^~~~~~~~
        |                     curexc_type
  skmisc/loess/src/_loess.c:17433:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
  17433 |     *value = tstate->exc_value;
        |                      ^~~~~~~~~
        |                      curexc_value
  skmisc/loess/src/_loess.c:17434:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
  17434 |     *tb = tstate->exc_traceback;
        |                   ^~~~~~~~~~~~~
        |                   curexc_traceback
  skmisc/loess/src/_loess.c: In function ‘__Pyx__ExceptionReset’:
  skmisc/loess/src/_loess.c:17441:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
  17441 |     tmp_type = tstate->exc_type;
        |                        ^~~~~~~~
        |                        curexc_type
  skmisc/loess/src/_loess.c:17442:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
  17442 |     tmp_value = tstate->exc_value;
        |                         ^~~~~~~~~
        |                         curexc_value
  skmisc/loess/src/_loess.c:17443:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
  17443 |     tmp_tb = tstate->exc_traceback;
        |                      ^~~~~~~~~~~~~
        |                      curexc_traceback
  skmisc/loess/src/_loess.c:17444:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
  17444 |     tstate->exc_type = type;
        |             ^~~~~~~~
        |             curexc_type
  skmisc/loess/src/_loess.c:17445:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
  17445 |     tstate->exc_value = value;
        |             ^~~~~~~~~
        |             curexc_value
  skmisc/loess/src/_loess.c:17446:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
  17446 |     tstate->exc_traceback = tb;
        |             ^~~~~~~~~~~~~
        |             curexc_traceback
  skmisc/loess/src/_loess.c: In function ‘__Pyx__GetException’:
  skmisc/loess/src/_loess.c:17501:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
  17501 |     tmp_type = tstate->exc_type;
        |                        ^~~~~~~~
        |                        curexc_type
  skmisc/loess/src/_loess.c:17502:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
  17502 |     tmp_value = tstate->exc_value;
        |                         ^~~~~~~~~
        |                         curexc_value
  skmisc/loess/src/_loess.c:17503:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
  17503 |     tmp_tb = tstate->exc_traceback;
        |                      ^~~~~~~~~~~~~
        |                      curexc_traceback
  skmisc/loess/src/_loess.c:17504:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
  17504 |     tstate->exc_type = local_type;
        |             ^~~~~~~~
        |             curexc_type
  skmisc/loess/src/_loess.c:17505:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
  17505 |     tstate->exc_value = local_value;
        |             ^~~~~~~~~
        |             curexc_value
  skmisc/loess/src/_loess.c:17506:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
  17506 |     tstate->exc_traceback = local_tb;
        |             ^~~~~~~~~~~~~
        |             curexc_traceback
  error: Command "gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_CBLAS -I/nix/store/kdl58n56r1inmyrb44k3nx2qjv05gmsn-python3.7-numpy-1.18.3/lib/python3.7/site-packages/numpy/core/include -I/nix/store/vs4vj1yzqj1bkcqkf3b6sxm6jfy1gb4j-python3-3.7.7/include/python3.7m -c skmisc/loess/src/_loess.c -o build/temp.linux-x86_64-3.7/skmisc/loess/src/_loess.o -MMD -MF build/temp.linux-x86_64-3.7/skmisc/loess/src/_loess.o.d" failed with exit status 1
  ----------------------------------------

ImportError: DLL load failed while importing _loess

Hi,

I have scikit-misc 0.1.4 installed in an Anaconda environment on Windows 10.
When I try to import skmisc.loess.loess i receive the following error:

>>> from skmisc.loess import loess
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Tools\Anaconda\lib\site-packages\skmisc\loess\__init__.py", line 51, in <module>
    from ._loess import (loess, loess_model, loess_inputs, loess_control,
ImportError: DLL load failed while importing _loess: Das angegebene Modul wurde nicht gefunden.

Same error with version 0.1.3.

Is that error related to issue #4?

scikit-misc fails to build with Python 3.13

Fedora is preparing for upgrading Python to version 3.13 (not yet released) in Fedora 41 (scheduled to be released in October). Part of that effort is rebuilding all packages using Python 3.13 pre-releases as they become available.

Currently scikit-misc fails to build using Python 3.13.0a4:

../skmisc/meson.build:22:15: ERROR: Command `/usr/bin/python3 -c 'import os
  os.chdir(os.path.join("..", "tools"))
  import numpy as np
  try:
    incdir = os.path.relpath(np.get_include())
  except Exception:
    incdir = np.get_include()
  print(incdir)
  '` failed with status 1.

I'm reporting this for awareness. I will also try to figure out what's causing the issue and, if I can, come up with a patch.

Fails to build with Python 3.11 and Cython 0.29.32

Hi. I'm trying to package scikit-misc as a dependency of plotnine for Fedora.

The build fails with the following error:

  skmisc/loess/src/_loess.c:198:12: fatal error: longintrepr.h: No such file or directory
    198 |   #include "longintrepr.h"
        |            ^~~~~~~~~~~~~~~
  compilation terminated.
  INFO: gcc: skmisc/loess/src/loessc.c
  skmisc/loess/src/loessc.c: In functionehg183a_’:
  skmisc/loess/src/loessc.c:472:19: warning: storing the address of local variablemessinerror_message’ [-Wdangling-pointer=]
    472 |     error_message = mess;
        |     ~~~~~~~~~~~~~~^~~~~~
  skmisc/loess/src/loessc.c:462:10: note: ‘messdeclared here
    462 |     char mess[4000], num[20];
        |          ^~~~
  skmisc/loess/src/loessc.c:46:14: note: ‘error_messagedeclared here
     46 | extern char *error_message;
        |              ^~~~~~~~~~~~~
  skmisc/loess/src/loessc.c: In functionehg184a_’:
  skmisc/loess/src/loessc.c:487:19: warning: storing the address of local variablemessinerror_message’ [-Wdangling-pointer=]
    487 |     error_message = mess;
        |     ~~~~~~~~~~~~~~^~~~~~
  skmisc/loess/src/loessc.c:477:10: note: ‘messdeclared here
    477 |     char mess[4000], num[30];
        |          ^~~~
  skmisc/loess/src/loessc.c:46:14: note: ‘error_messagedeclared here
     46 | extern char *error_message;
        |              ^~~~~~~~~~~~~

Apparently the header file has been moved in 3.11 according to the Python docs. However, this change was implemented in Cython 0.29.25.

So, I'm out of clues for the moment.

Installation on Windows

Hi, I haven't been able to install scikit-misc on Windows 10. I found this thread regarding scikit-misc-wheels, and it looked like it wasn't able to be run on Windows.

Is that the case for scikit-misc? The error I was seeing suggested there was a problem compiling Fortran code.

Question regarding numpy

skmisc/meson.build mentions:

# Note: `required: false` can be removed once numpy 1.19 is the minimum version
npyrandom_lib = cc.find_library('npyrandom', dirs: npyrandom_path, required: false)

In pyprojecttoml the numpy dependency is defined as:

    "numpy>=1.22.3",

So, I guess the required: false can be dropped?

svddc failed in l2fit

Just wondering if you have any advice - maybe I am trying to use the library incorrectly.

I am trying to fit and predict on a ~28,000x4 training set of x-values
I followed the advice of a previous issue that required adding surface='direct' - not sure if this is really what I want to do, but it did get rid of the Extrapolation not allowed with blending error. As a point of clarification by having the weights am I blending?

Anyway since this change I now receive svddc failed in l2fit. I followed this trace back to loessf.f line 379 but I can't really understand the code well enough to figure out why that trigger is activating - other than its a problem with SVD. For context here is how I am calling loess:

def fit(x, y, bandwidth):
    weights = tricubic_kernel(x, bandwidth)
    for i in range(len(y)):
        model = loess(x, y, weights[:,i], surface='direct', degree=1.fit()  

ValueError: b'Extrapolation not allowed with blending'

Hi,

I am trying to predict the values in a sequence of days. I have fit my models with a range of days {day: 0 -> day: 50} and I would like to predict the day 51.

When I try to do it, it appears the following error:

ValueError: b'Extrapolation not allowed with blending'

Is there any way to predict using X that it has never seen before?

Thank you in davance

scikit-misc fails to build with Python 3.12.0a4

Fedora is preparing for the inclusion of Python 3.12 in Fedora 39, planned to be released at the end of October this year. Currently scikit-misc fails to build with Python 3.12 due to deprecations:

Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 508, in main
    generate_requires(
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 415, in generate_requires
    generate_build_requirements(backend, requirements)
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 265, in generate_build_requirements
    new_reqs = get_requires()
               ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=['wheel'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
    self.run_setup()
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 484, in run_setup
    self).run_setup(setup_script=setup_script)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 335, in run_setup
    exec(code, locals())
  File "<string>", line 170, in <module>
  File "<string>", line 152, in setup_package
  File "/builddir/build/BUILD/scikit-misc-0.1.4/versioneer.py", line 1476, in get_version
    return get_versions()["version"]
           ^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/scikit-misc-0.1.4/versioneer.py", line 1408, in get_versions
    cfg = get_config_from_root(root)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/scikit-misc-0.1.4/versioneer.py", line 342, in get_config_from_root
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

More information can be found in the downstream bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=2165562

How to run tests

I tried running the tests as part of packaging scikit-misc for Fedora. It fails with the following error:

__init__.py:21: in <module>
    from skmisc.__config__ import show as show_config  # noqa: F401
E   ModuleNotFoundError: No module named 'skmisc.__config__'

There's an explanation in the exception following the import:

Error importing skmisc: you cannot import skmisc while
being in skmisc source directory; please exit the skmisc source
tree first, and relaunch your python intepreter.

I fail to fully grasp the meaning of the message. My first assertion is that this is not possible in the build environment. Is there any other way of running the tests?

For now I'm doing a simple import test, which should be acceptable to get the package reviewed. However, if possible, I would also like to run the tests.

fail to install the package on Mac M1 Chip

I'm wondering if it's possible to make the package compactable with Mac M1 Chip. I can pip install the package, but I get the following error I import skmisc.loess:

import skmisc.loess
Traceback (most recent call last):
File "", line 1, in
File "/Users/jingshuw/miniforge3/lib/python3.9/site-packages/skmisc/loess/init.py", line 51, in
from ._loess import (loess, loess_model, loess_inputs, loess_control,
ImportError: dlopen(/Users/jingshuw/miniforge3/lib/python3.9/site-packages/skmisc/loess/_loess.cpython-39-darwin.so, 2): no suitable image found. Did find:
/Users/jingshuw/miniforge3/lib/python3.9/site-packages/skmisc/loess/_loess.cpython-39-darwin.so: mach-o, but wrong architecture
/Users/jingshuw/miniforge3/lib/python3.9/site-packages/skmisc/loess/_loess.cpython-39-darwin.so: mach-o, but wrong architecture

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.