data-mining-past-year-ans's People
data-mining-past-year-ans's Issues
DM2017PY: opinion in Q5 (c)
I am Chin Chee Hoong from data mining course January 2018.
For the Q5 c (ii), actually the f2() is euclidean distance, not minkowski distance (minkowski distance can become Manhattan distance if r = 1)
Then, about the disadvantage of Manhattan distance over the (Euclidean distance) is, we are having a hard time to determine the "actual" distance between the points.
For example, lets use P1 (4,5) and P2(1,8) and P3(0,0). By calculating the euclidean distance, the euclidean distance between P1 and P3, and between P2 and P3, is sqrt(41) and sqrt(65). However, by calculating their Manhattan distance, both results are the same, which is 9!
Manhattan distance is pretty like calculating how many move you need to do so that you can reach the end point from the start point. For example, if you want to reach P2 (5,0) from P1 (0,0), you just need to go left for 5 times, with each time increment x-axis value by 1. That value then can think as the difference (Manhattan distance) of both points.
Q5Ciii
Euclidean distance measure the direct distance from A point to B for 2 dimensinal, typically shorter distance than Manhattan.
Which mean Manhattan will better than Eclidean due to Euclidean might easily influnce by those noise thing or outlier.
Working on continuous space where all dimensions are properly scaled and relevant, then Euclidean is going to be better choice for distance function.
If you have a space filled with exclusively countable dimensions, then Manhattan distance will make sense.
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.