Giter Club home page Giter Club logo

Comments (5)

AhmedGillani avatar AhmedGillani commented on July 24, 2024 1

I can fix this error by simply running following commands,
python -m pip install --upgrade scikit-learn & pip install -U scikit-learn
python -m pip install --upgrade category_encoders & pip install -U category_encoders

from modern-time-series-forecasting-with-python.

nonpa-gt avatar nonpa-gt commented on July 24, 2024

Hello,

In my case I had no problem but I just checked and I have 2 different packages (category-encoders, category_encoders) , both are version 2.6.0

I hope it helps you on something

from modern-time-series-forecasting-with-python.

murpher9 avatar murpher9 commented on July 24, 2024

I added this function at 242

        self._encoded_categorical_features = copy.deepcopy(
            self.feature_config.categorical_features
        )
**def get_feature_names(self, input_features=None):
    if input_features is None:
        return self.columns
    else:
        return input_features**

def fit(
    self,

Also I change 291 to the following:

            ), f"These categorical features are not handled by the categorical_encoder : {missing_cat_cols}"
        X = self._cat_encoder.fit_transform(X, y)
        X_encoded = self._cat_encoder.fit_transform(X, y)
        **self._encoded_categorical_features = [col for col in X_encoded.columns if col not in self.feature_config.continuous_features + self.feature_config.boolean_features]
    else:
        self._encoded_categorical_features = []

from modern-time-series-forecasting-with-python.

VondracekS avatar VondracekS commented on July 24, 2024

Hello,

In my case I had no problem but I just checked and I have 2 different packages (category-encoders, category_encoders) , both are version 2.6.0

I hope it helps you on something

Hi. Thanks for the comment, however I do not think these are 2 separate packages. The category-encoders is name of the package on pip server while category_encoders is the name you use when importing the package in python

from modern-time-series-forecasting-with-python.

manujosephv avatar manujosephv commented on July 24, 2024

#21 Should have fixed this. It would be nice if someone can check and confirm

from modern-time-series-forecasting-with-python.

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.