Comments (3)
I don't see the point. Questions 3.6 and 3.7 are in total correspondence with the assignment.
from mlcourse.ai.
The point is that anyone who tries to do demo assignments now will get their answers marked incorrect. Despite the answers being correct. Take me: I did the assignment, checked my answers and then boom! Answers I gave to 3.6 and 3.7 were incorrect. But the questions are relatively straightforward. I triple-checked my code. I was still getting the same values, which were incorrect according to the web form.
I then went on and checked out a previous version of the assignment. Run my code (exactly the same code). Hey! I got the correct answers.
Now to wrap up. Possible answers to question 3.6 from the web form are: 0.895; 0.856; 0.788; 0.845
.
Code with the answer to question 3.6 (corresponds to section 3.1 in the notebook)
tree = DecisionTreeClassifier(max_depth=3, random_state=17)
tree.fit(X_train, y_train)
tree_predictions = tree.predict(X_test)
accuracy_score(y_test, tree_predictions)
If one runs it in ed28f5f (current master), the result is 0.790
.
If one runs it in 152a534 (previous version), the result is 0.845
.
Please note how the answer from the previous version matches web form expectations.
So I am saying that although this is a demo assignment, the validation form doesn't validate answers of the current version of the assignment.
from mlcourse.ai.
fixed that in 4130b09
I've found the reason. Maybe it's a bug in sklearn implementation: accuracy depends on the order of columns. First categorical, then numeric features (1) or vice versa (2) - accuracy differs very much in (1) and (2). Now checked with docker, shall be all right.
Thanks!
from mlcourse.ai.
Related Issues (20)
- Data for assignment 4 HOT 1
- Incredibly large output in Feature selection HOT 1
- Something wrong with 9th demo assignment
- Topic 6 russian lecture notebook is in english
- Proofread topic 1
- Proofread topic 2
- Proofread topic 3 HOT 1
- Proofread the prereqs section
- AI learning
- Issue on page /book/topic02/topic02_visual_data_analysis.html HOT 1
- Update the Docker image to use Poetry
- Fix MyST header anchors HOT 2
- There might be an error in Topic 5, Part 1: Bagging 4. Out-of-Bag Error subheading HOT 1
- AttributeError: 'NoneType' object has no attribute 'split' using anaconda HOT 6
- Proofread topic 4 HOT 2
- Proofread topic 5 HOT 1
- Proofread topic 6
- Proofread topic 7 HOT 2
- The dataset for lecture 5 practical is not available HOT 1
- topic01 - small section of python code doesn't run - out of sync with main content
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 mlcourse.ai.