Comments (3)
From a Reddit comment:
Advice: I think you are missing a few big things like preprocessing/scaling and pipelines.
Before using the learners, inputs should be scaled so that each feature has equal weight. Something like StandardScaler or MinMaxScaler are both appropriate (from sklearn.preprocessing). If you think some features are more important, you can scale them later to increase their relative importance in prediction. These are more parameters you would tune using CV, but these can be really numerous, so GridSearch is out the window and you would have to consider some alternatives like Nelder Mead search, genetic search, or multivariate gradient descent if you suspect convexity.
You have to fit these scalers on the training data and then use the trained fit to transform the testing data. Using Pipelines simplifies this whole process (fits the scaler and learner at once, transforms and predicts at once).
Can you please tell which file you are referring to? To add the scaling.
from data-analysis-and-machine-learning-projects.
The example data science notebook: https://github.com/rhiever/Data-Analysis-and-Machine-Learning-Projects/blob/master/example-data-science-notebook/Example%20Machine%20Learning%20Notebook.ipynb
from data-analysis-and-machine-learning-projects.
Hi!I believe that Scaling the features won't really be beneficial in our features. The classification is based on the size of petals and various other continuous data features are available. Scaling them might ruin their actual existence and might ruin the classification.
from data-analysis-and-machine-learning-projects.
Related Issues (20)
- KeyError while using seaborn plotting HOT 3
- US-Weather-History NOAA weather data convenient link
- Computing the optimal road trip across the U.S. - Single Python script link is broken HOT 1
- Example Machine Learning Notebook.ipynb HOT 1
- why did you not use Naives bayes? HOT 3
- follower factory's alpha value calculation doesn't work for small accounts HOT 4
- UsageError: Line magic function `%install_ext` not found.
- what is ML ? HOT 1
- Ball Outcome HOT 5
- your blog is broken, sir HOT 1
- .
- iris["species"].value_counts()
- Hi, I'm getting a keyerror of species, please advice after looking at this error HOT 1
- Best parameters result not reproducible
- ML notebook: Add interpretation section
- twitter got 400 in follower-factory
- Getting this error when i try to plot my dataframe 'callers' on sns HOT 1
- Optimal road trip
- Index Error HOT 2
- MY_PROJECTS
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 data-analysis-and-machine-learning-projects.