Comments (6)
Are you using the versions mentioned in this git repo?
from approachingalmost.
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.
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.
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.
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.
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)
- Is the keras model in adult sensus data realy is the best? HOT 1
- Typo on page 5
- Hard to differentiate code from comments HOT 1
- code missing create_folds.py missing HOT 1
- numpy version is conflicting HOT 3
- Error while loading the vectors of crawl-300d-2M.vec
- csv files used in the book HOT 3
- fillna() issue
- Correction in Page 37
- keras model translation to pytorch doesn't perform as expected
- Arranging machine learning projects as GH template HOT 2
- load_vectors - Memory Issue
- a version of the book with an index or table of contents?
- Hello author, I encountered the following installation package error when I used your environment.yml to create the environment. I tried to update conda, pip and the corresponding mirror source, but still failed to solve it. How can I solve this problem?
- Supervised Learning - First example MNIST data HOT 1
- Can I help you translate the book into Chinese? HOT 4
- Bug in page 213 HOT 1
- Hello,I jut find that in page 224๏ผmiss a import line code compared to the "plant.py"
- page 230 missing nltk
- Missing square sign when calculating R2 in page 69
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from approachingalmost.