Questions tagged [fuzzy-logic]

Fuzzy logic is logic handling uncertainty by using as truth values a real number between 0 and 1 to represent less or more certainty about a variable. Fuzzy operators similarly work with degrees of truth.

What is it?

Fuzzy logic is logic handling uncertainty by using as truth values a real number between 0 and 1 to represent less or more certainty about a variable. It is a form of many-valued logic. Fuzzy operators similarly work with degrees of truth.

How does it work?

Fuzzy logic deals with reasoning that is approximate rather than fixed and exact. In contrast with traditional logic theory, where binary sets have two-valued logic: true or false, fuzzy logic variables may have a truth value that ranges in degree between 0 and 1. Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range between completely true and completely false.

The reasoning in fuzzy logic is similar to human reasoning. It allows for approximate values and inferences as well as incomplete or ambiguous data (fuzzy data) as opposed to only relying on crisp data (binary yes/no choices). Fuzzy logic is able to process incomplete data and provide approximate solutions to problems other methods find difficult to solve.

In traditional logic, an answer is either black or white. Using fuzzy logic, the answer could be white, black or any variation of grey.

Related tags

Useful links

419 questions
43
votes
11 answers

What is fuzzy logic?

I'm working with a couple of AI algorithms at school and I find people use the words Fuzzy Logic to explain any situation that they can solve with a couple of cases. When I go back to the books I just read about how instead of a state going from On…
DFectuoso
  • 4,877
  • 13
  • 39
  • 55
19
votes
0 answers

Fuzzy logic in Python

I'm searching for a good fuzzy library in Python but the ones that I'm finding are not being maintained and doesn't seem to add everything I need to create a Fuzzy system. These are the ones I found so far: PyFuzzy, Peach and Fuzzpy. Do you know of…
user1860045
  • 213
  • 2
  • 5
18
votes
1 answer

elasticsearch fuzzy matching max_expansions & min_similarity

I'm using fuzzy matching in my project mainly to find misspellings and different spellings of the same names. I need to exactly understand how the fuzzy matching of elastic search works and how it uses the 2 parameters mentioned in the title. As I…
17
votes
3 answers

Trying to optimise fuzzy matching

I have 2,500,000 product names and I want to try and group them together, i.e. find products that have similar names. For example, I could have three products: Heinz Baked Beans 400g; Hz Bkd Beans 400g; Heinz Beans 400g. that are actually the…
Richard Hansell
  • 5,315
  • 1
  • 16
  • 35
12
votes
1 answer

Joining two datasets using fuzzy logic

I’m trying to do a fuzzy logic join in R between two datasets: first data set has the name of a location and a column called config second data set has the name of a location and two additional attributes that need to be summarized before they are…
steppermotor
  • 701
  • 6
  • 22
11
votes
1 answer

How to group words whose Levenshtein distance is more than 80 percent in Python

Suppose I have a list:- person_name = ['zakesh', 'oldman LLC', 'bikash', 'goldman LLC', 'zikash','rakesh'] I am trying to group the list in such a way so the Levenshtein distance between two strings is maximum. For finding out the ratio between two…
python
  • 4,403
  • 13
  • 56
  • 103
11
votes
4 answers

Multikey Multivalue Non Deterministic python dictionary

There is already a multi key dict in python and also a multivalued dict. I needed a python dictionary which is both: example: # probabilistically fetch any one of baloon, toy or car d['red','blue','green']== "baloon" or "car" or "toy" Probability…
10
votes
2 answers

F# and Fuzzy Logic

I know it might sound strange but I would like to know one thing in this new world where Microsoft Visual F# is getting into. There are many application of this language, I am going to learn, regarding parsing, functional programming, structured…
Andry
  • 16,172
  • 27
  • 138
  • 246
10
votes
2 answers

Fuzzy Matching with threshold filter C#

I need to implement some kind of this: string textToSearch = "Extreme Golf: The Showdown"; string textToSearchFor = "Golf Extreme Showdown"; int fuzzyMatchScoreThreshold = 80; // One a 0 to 100 scale bool searchSuccessful =…
Nazar Grynko
  • 101
  • 1
  • 3
9
votes
2 answers

Comparing (similar) images with Python/PIL

I'm trying to calculate the similarity (read: Levenshtein distance) of two images, using Python 2.6 and PIL. I plan to us e the python-levenshtein library for fast comparison. Main question: What is a good strategy for comparing images? My idea is…
Attila O.
  • 15,659
  • 11
  • 54
  • 84
9
votes
4 answers

SQL and fuzzy comparison

Let's assume we have a table of People (name, surname, address, SSN, etc). We want to find all rows that are "very similar" to specified person A. I would like to implement some kind of fuzzy logic comparation of A and all rows from table People.…
running.t
  • 5,329
  • 3
  • 32
  • 50
9
votes
4 answers

Is it possible to do a Levenshtein distance in Excel without having to resort to Macros?

Let me explain. I have to do some fuzzy matching for a company, so ATM I use a levenshtein distance calculator, and then calculate the percentage of similarity between the two terms. If the terms are more than 80% similar, Fuzzymatch returns…
user1504088
8
votes
3 answers

FuzzyLogic in Javascript?

Does anyone know how one could access fuzzy logic from javascript? I have a good fuzzy library in Java and C++, but I wanted something I could run from HTML5/javascript.
Androider
  • 21,125
  • 36
  • 99
  • 158
7
votes
2 answers

Calling a function with unknown number of parameters Python

I am trying to read in a Fuzzy plain text rule and pass the parameters to a SciKit-Fuzzy function call to create fuzzy rules. For example, if I read in this text rule: IF service IS poor OR food IS rancid THEN tip IS cheap Then the function call…
GHWHG
  • 73
  • 5
7
votes
1 answer

Fuzzy Match Across Columns in R

How can I measure the degree to which names are similar in r? In other words, the degree to which a fuzzy match can be made. For example, I am working with a data frame that looks like this: Name.1 <- c("gonzalez", "wassermanschultz",…
Sharif Amlani
  • 1,138
  • 1
  • 11
  • 25
1
2 3
27 28