Code Monkey home page Code Monkey logo

Comments (7)

masonreznov avatar masonreznov commented on July 17, 2024

Covert "vocab" into 2d array. Instead of "self.bov_helper.scale.transform(vocab)" try "self.bov_helper.scale.transform(np.atleast_2d(vocab)) ". Also "import numpy as np" before this step.

this helped

from bag-of-visual-words-python.

nys09 avatar nys09 commented on July 17, 2024

I have the same error. But I am unable to solve it by following your suggestion. I replaced line 89 in Bag.py to vocab = self.bov_helper.scale.transform(np.atleast_2d(vocab)) as directed by you. I am still getting the same error. Can you please help me with this ?

from bag-of-visual-words-python.

prathmanu avatar prathmanu commented on July 17, 2024

Same issue here (using Python 3.5.4).. Tried the suggestion by @masonreznov but still giving the same error

from bag-of-visual-words-python.

prathmanu avatar prathmanu commented on July 17, 2024

I have the same error. But I am unable to solve it by following your suggestion. I replaced line 89 in Bag.py to vocab = self.bov_helper.scale.transform(np.atleast_2d(vocab)) as directed by you. I am still getting the same error. Can you please help me with this ?

change Line 140 from word = each.split("/")[-1] to ' \ ' (Slash )

from bag-of-visual-words-python.

nguyenquyet27 avatar nguyenquyet27 commented on July 17, 2024

After I change Line 140 from word = each.split("/")[-1] to ' \ ' and convert self.bov_helper.scale.transform(np.atleast_2d(vocab)) I
still not out of error

from bag-of-visual-words-python.

prathmanu avatar prathmanu commented on July 17, 2024

After I change Line 140 from word = each.split("/")[-1] to ' \ ' and convert self.bov_helper.scale.transform(np.atleast_2d(vocab)) I
still not out of error

try self.bov_helper.scale.transform(vocab) (don’t use np.atleast_2d) , change Line 140 from word = each.split("/")[-1] to ' \ ' If still the same error ,debug getFiles method(Line 129) in helper.py

from bag-of-visual-words-python.

nepoleonk avatar nepoleonk commented on July 17, 2024

I have tried all the methods given above. I am still having the problem. Please explain in detail. Thank you in advance

from bag-of-visual-words-python.

Related Issues (12)

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.