GithubHelp home page GithubHelp logo

Comments (6)

someshsingh22 avatar someshsingh22 commented on May 27, 2024 1

I think .distance() would be more specific and elaborate
Jaccard Distance, Edit distance, Euclidean distance are the metrics till now.
You don't want the user to confuse between the terms, calculate could refer to a lot more functions

from decepticonlp.

rohts-patil avatar rohts-patil commented on May 27, 2024 1

I think the calculate() method will be appropriate.

For example, class name is EuclideanDistanceMetric and use it as EuclideanDistanceMetric.calculate(vector from, vector to)
@someshsingh22

Also, is there any possibility that there would be metrics added in the future that are not distance-based?

from decepticonlp.

someshsingh22 avatar someshsingh22 commented on May 27, 2024

This is basically how different two strings are so it will remain distance for most cases, however, when we will transition to vectors terms like cosine similarity will be used. .calculate() alone looks ambiguous however EucledianDistance.calculate(x,y) looks exactly what we'd want. What's your call @rajaswa

from decepticonlp.

rajaswa avatar rajaswa commented on May 27, 2024

Lets stick to .calclate() for the time being

from decepticonlp.

parantak avatar parantak commented on May 27, 2024

I think as we implement more metrics, we could perhaps split them into subcategories like edit-based(Levenshtein, etc.), token-based (Jaccard, etc.), vector-based, etc.

from decepticonlp.

parantak avatar parantak commented on May 27, 2024

OOP implementation. If you want a different structure, let me know.

from decepticonlp.

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.