Giter Club home page Giter Club logo

Comments (3)

bsm8734 avatar bsm8734 commented on August 12, 2024 4

cosine similarity를 찾아보시면 좋을거같아요!


유사도는 다차원 공간의 두 점의 거리를 나타내는데, 이 거리가 짧을수록 유사도가 높다고 할 수 있습니다.
떨어져 있는 두 벡터보다는, 비슷한 위치에 있는 두 벡터가 확실히 더 비슷하겠죠!
따라서, 벡터간 유사도는 벡터간 거리로 나타낼 수 있습니다.
벡터 간의 거리를 재는 방식이 여러 개인 만큼, 유사도를 여러 방법으로 구할 수 있습니다!

사실 우리가 배웠던 L1-norm과 L2-norm은 하나의 식에 인자를 대입한 값으로 나타낼 수 있습니다.

image
(➡ Minkowski Distance)

r = 1: City Block Distance(= Manhattan, L1-norm) - (r = 1)차원 데이터간의 거리를 측정하기에 적당
r = 2: Euclidean Distance(=L2-norm) - (r = 2)차원 거리를 측정하기에 적당
등등

이러럼 L1, L2 norm이 단순히 거리를 고려하는 거리(유사도)라면,
내적의 식은 cosine similarity의 식과 동일하며

image

내적(코사인유사도)는 방향과 길이를 모두 고려할 수 있기에 사용됩니다! ➡ 방향: 코사인에 들어간 θ에 의해서!

라고 알고있습니당...! 혹시 잘못알고있는부분이 있다면 알려주세요 !😀

from peer-session.

mj950425 avatar mj950425 commented on August 12, 2024 4

저도 궁금해서 찾아봤는데 코사인 유사도 뿐 아니라 이러한 방식도 있다고 합니당
가장 비슷한 문서는 아마 B,C인거 같은데 오타같습니다!


image
https://www.aitimes.kr/news/articleView.html?idxno=17314

from peer-session.

Heeseok-Jeong avatar Heeseok-Jeong commented on August 12, 2024

감사합니다 여러분! 이해됐어요~.~

from peer-session.

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.