Comments (6)
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.
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.
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.
Lets stick to .calclate() for the time being
from decepticonlp.
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.
OOP implementation. If you want a different structure, let me know.
from decepticonlp.
Related Issues (20)
- Sub-W | GloVe implementation HOT 1
- Implementation of Repeating Characters HOT 7
- Adding more characters to the dictionary in the typo function HOT 6
- int2text or text2int HOT 8
- Typo Try Catch Exceptions
- Similarity metrics (New) HOT 6
- Numpy is used in perturbations.py but not specified in requirements.txt HOT 1
- Text Preprocessing HOT 2
- Add .coveragerc
- Add #pragma: no cover to abstract methods which should never be tested. HOT 2
- Implementing support for embeddings HOT 2
- Where should the temporal difference functions be integrated? HOT 1
- Implementing WMD HOT 2
- Adding a transforms class [check details] HOT 5
- Implementing Attacker class HOT 16
- Restructuring the tests directory HOT 1
- Implementing Keyword Extraction
- Integration Tests for attack.py HOT 2
- Plan for the pipeline [UPDATED] HOT 4
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 decepticonlp.