GithubHelp home page GithubHelp logo

Comments (6)

x4nth055 avatar x4nth055 commented on July 20, 2024

Hey @zzirend ,

What specific error is raised? in which file and line? Can you please send the traceback?

Thanks,

from emotion-recognition-using-speech.

NeneMatsuki avatar NeneMatsuki commented on July 20, 2024

Hi, I am getting the same problem, and here is the error message:

Traceback (most recent call last):
File "C:\Users\nene.matsuki\Documents\GitHub\emotion-recognition-using-speech\grid_search.py", line 28, in
d = EmotionRecognizer(model, emotions=emotions,model_name = f"grid/{model.class.name}", features = features)
File "C:\Users\nene.matsuki\Documents\GitHub\emotion-recognition-using-speech\emotion_recognition.py", line 87, in init
if not model:
File "C:\Users\nene.matsuki\Anaconda3\envs\emotion_recognition_using_speec\lib\site-packages\sklearn\ensemble_base.py", line 180, in len
return len(self.estimators_)
AttributeError: 'GradientBoostingClassifier' object has no attribute 'estimators_'

Thanks :)

from emotion-recognition-using-speech.

ruchirsachdeva avatar ruchirsachdeva commented on July 20, 2024

Hi @x4nth055 , I am getting the same problem as well

    if not model:
  File "/Users/ruchirs/ser/emotion-recognition-using-speech/emo-env/lib/python3.9/site-packages/sklearn/ensemble/_base.py", line 180, in __len__
    return len(self.estimators_)
AttributeError: 'RandomForestClassifier' object has no attribute 'estimators_'

from emotion-recognition-using-speech.

x4nth055 avatar x4nth055 commented on July 20, 2024

Hey @ruchirsachdeva and @NeneMatsuki,

I just tried to run the grid_search.py script and it worked fine, I think it's related to sklearn's version, please downgrade to 0.24.2 to be able to run the project properly:

$ pip install scikit-learn==0.24.2

Please let me know if it persists.

from emotion-recognition-using-speech.

stardiviner avatar stardiviner commented on July 20, 2024

Hi @x4nth055 , I am getting the same problem as well

    if not model:
  File "/Users/ruchirs/ser/emotion-recognition-using-speech/emo-env/lib/python3.9/site-packages/sklearn/ensemble/_base.py", line 180, in __len__
    return len(self.estimators_)
AttributeError: 'RandomForestClassifier' object has no attribute 'estimators_'

I got same error.

@x4nth055 I tried this version scikit-learn. Still same problem.

from emotion-recognition-using-speech.

fujiantaoshan avatar fujiantaoshan commented on July 20, 2024

嗨,我也遇到了同样的问题

    if not model:
  File "/Users/ruchirs/ser/emotion-recognition-using-speech/emo-env/lib/python3.9/site-packages/sklearn/ensemble/_base.py", line 180, in __len__
    return len(self.estimators_)
AttributeError: 'RandomForestClassifier' object has no attribute 'estimators_'

我遇到了同样的错误。

我尝试了这个版本。还是同样的问题。scikit-learn

您好麻烦问一下您解决这个问题了吗

from emotion-recognition-using-speech.

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.