Giter Site home page Giter Site logo

Comments (6)

msat59 avatar msat59 commented on August 17, 2024 1

Thank you @aaronreidsmith .

The bug is fixed and my code runs smoothly.

from pmdarima.

benman1 avatar benman1 commented on August 17, 2024

I've come across the same problem. But I found that if I downgrade to scikit-learn 1.1.3 (from 1.2.0) the problem goes away.

from pmdarima.

msat59 avatar msat59 commented on August 17, 2024

I have the same issue. I created a new environment and updated all libraries, so I am not sure which one causes this.

Here is the code to replicate the issue:

from pmdarima import pipeline
from pmdarima import arima
from pmdarima import preprocessing as ppc

max_p=5
max_q=5
ff_m=12
ff_k=4
n_jobs=4
trend = 'c'

train = np.array([ 53.49732848,  55.67194689,  58.38817983,  60.15814887,
        60.78495554,  60.92771421,  61.30123253,  62.37336819,
        64.31094699,  66.95783357,  69.91670478,  72.54269204,
        73.76937463,  72.23523373,  67.0330952 ,  58.5990769 ,
        49.0156232 ,  41.45220597,  38.91781587,  43.00469642,
        53.33866198,  67.77987974,  83.06470788,  95.81475843,
       103.74286951, 106.54764586, 105.90211977, 104.27736115,
       103.47655163, 104.35387802, 107.59139252, 113.98787597,
       123.92153058, 136.93004483, 151.58183531, 165.31885435,
       175.02600621, 178.97489817, 178.31169515, 175.85739037,
       173.50084961, 171.48318201, 169.87503182, 169.55511273,
       171.45912256, 175.46712864])

pipe = pipeline.Pipeline([
            ("fourier", ppc.FourierFeaturizer(m=ff_m, k=ff_k)),
            ("arima", arima.AutoARIMA(stepwise=False, trace=5, error_action="ignore",
                                      seasonal=False,  # because we use Fourier
                                      trend=trend, n_jobs=n_jobs,
                                      max_p=max_p, max_q=max_q,
                                      suppress_warnings=True))
        ])

pipe.fit(train)

pip.predict(2)

Output:

TypeError: transform() got multiple values for argument 'y' 

from pmdarima.

aaronreidsmith avatar aaronreidsmith commented on August 17, 2024

I think this should be fixed by #532. We'll get a fixed version released so y'all aren't stuck pinning scikit to <1.2.0

from pmdarima.

msat59 avatar msat59 commented on August 17, 2024

I think it's because of scikit-learn new feature:

Major Feature The set_output API has been adopted by all transformers. Meta-estimators that contain transformers such as pipeline.Pipeline or compose.ColumnTransformer also define a set_output.

from pmdarima.

aaronreidsmith avatar aaronreidsmith commented on August 17, 2024

I just deployed version 2.0.3 (to PyPI; conda builds are maintained separately). Give that a shot and let me know if it works

from pmdarima.

Related Issues (20)

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.