Giter Club home page Giter Club logo

Comments (6)

abhishekkrthakur avatar abhishekkrthakur commented on September 27, 2024

Are you using the versions mentioned in this git repo?

from approachingalmost.

cleysonl avatar cleysonl commented on September 27, 2024

Good point, I am using windows so maybe that's the problem. Let me go through it again using Linux and the exact same versions in the git repo and I'll come back to you.

from approachingalmost.

abhishekkrthakur avatar abhishekkrthakur commented on September 27, 2024

If im not wrong, windows shouldn't be a problem. could you try creating environment from files mentioned in this repo? README file, in the end.?

from approachingalmost.

cleysonl avatar cleysonl commented on September 27, 2024

Used the requirements.txt in the repo for my conda environment and still got the error.

(ml) C:\Users\leyso\Documents\Courses\Approaching almost all ML problems\Chapter 8\src>python rf_gp_minimize.py
[Integer(low=3, high=15, prior='uniform', transform='identity'), Integer(low=100, high=1500, prior='uniform', transform='identity'), Categorical(categories=('gini', 'entropy'), prior=None), Real(low=0.01, high=1, prior='uniform', transform='identity')]
Iteration No: 1 started. Evaluating function at random point.
Traceback (most recent call last):
  File "rf_gp_minimize.py", line 109, in <module>
    result = gp_minimize(
  File "C:\Users\leyso\anaconda3\envs\ml\lib\site-packages\skopt\optimizer\gp.py", line 264, in gp_minimize
    return base_minimize(
  File "C:\Users\leyso\anaconda3\envs\ml\lib\site-packages\skopt\optimizer\base.py", line 271, in base_minimize
    next_x = optimizer.ask()
  File "C:\Users\leyso\anaconda3\envs\ml\lib\site-packages\skopt\optimizer\optimizer.py", line 332, in ask
    return self._ask()
  File "C:\Users\leyso\anaconda3\envs\ml\lib\site-packages\skopt\optimizer\optimizer.py", line 398, in _ask
    return self.space.rvs(random_state=self.rng)[0]
  File "C:\Users\leyso\anaconda3\envs\ml\lib\site-packages\skopt\space\space.py", line 764, in rvs
    if sp_version < (0, 16):
TypeError: '<' not supported between instances of 'Version' and 'tuple'

from approachingalmost.

cleysonl avatar cleysonl commented on September 27, 2024

Had to install scikit-optimize because it wasn't in the file requirements.txt.
Which version are you using? I have 0.7.4

from approachingalmost.

cleysonl avatar cleysonl commented on September 27, 2024

Just ran the exactly same code with a new environment created inside WSL2 using the requirements.txt file in the repo an runs perfectly. Maybe it is a Windows thing.

from approachingalmost.

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.