{"id":15009931,"url":"https://github.com/leynier/inferfuzzy","last_synced_at":"2025-10-08T18:14:22.866Z","repository":{"id":56090557,"uuid":"315211359","full_name":"leynier/inferfuzzy","owner":"leynier","description":"Inferfuzzy es un biblioteca de Python para implementar Sistemas de Inferencia Difusa","archived":false,"fork":false,"pushed_at":"2020-11-26T03:01:15.000Z","size":1866,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T23:09:11.642Z","etag":null,"topics":["cuba","fuzzy-logic","fuzzy-matching","inference-engine","inference-rules","matcom","matcom-uh","python","python-3","python3","typer"],"latest_commit_sha":null,"homepage":"https://leynier.github.io/inferfuzzy","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leynier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-23T05:38:50.000Z","updated_at":"2022-09-28T04:42:23.000Z","dependencies_parsed_at":"2022-08-15T13:00:34.007Z","dependency_job_id":null,"html_url":"https://github.com/leynier/inferfuzzy","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leynier%2Finferfuzzy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leynier%2Finferfuzzy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leynier%2Finferfuzzy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leynier%2Finferfuzzy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leynier","download_url":"https://codeload.github.com/leynier/inferfuzzy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253787196,"owners_count":21964294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cuba","fuzzy-logic","fuzzy-matching","inference-engine","inference-rules","matcom","matcom-uh","python","python-3","python3","typer"],"created_at":"2024-09-24T19:29:10.400Z","updated_at":"2025-10-08T18:14:22.782Z","avatar_url":"https://github.com/leynier.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inferfuzzy\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Test](https://github.com/leynier/inferfuzzy/workflows/CI/badge.svg)](https://github.com/leynier/inferfuzzy/actions?query=workflow%3ACI)\n[![Version](https://img.shields.io/pypi/v/inferfuzzy?color=%2334D058\u0026label=Version)](https://pypi.org/project/inferfuzzy)\n[![Last commit](https://img.shields.io/github/last-commit/leynier/inferfuzzy.svg?style=flat)](https://github.com/leynier/inferfuzzy/commits)\n[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/leynier/inferfuzzy)](https://github.com/leynier/inferfuzzy/commits)\n[![Github Stars](https://img.shields.io/github/stars/leynier/inferfuzzy?style=flat\u0026logo=github)](https://github.com/leynier/inferfuzzy/stargazers)\n[![Github Forks](https://img.shields.io/github/forks/leynier/inferfuzzy?style=flat\u0026logo=github)](https://github.com/leynier/inferfuzzy/network/members)\n[![Github Watchers](https://img.shields.io/github/watchers/leynier/inferfuzzy?style=flat\u0026logo=github)](https://github.com/leynier/inferfuzzy)\n[![Website](https://img.shields.io/website?up_message=online\u0026url=https%3A%2F%2Fleynier.github.io/inferfuzzy)](https://leynier.github.io/inferfuzzy)\n[![GitHub contributors](https://img.shields.io/github/contributors/leynier/inferfuzzy)](https://github.com/leynier/inferfuzzy/graphs/contributors)\n\n**Inferfuzzy** is a **Python** library to implement **Fuzzy Inference Systems**.\n\n## Getting started\n\n### Installation\n\n```bash\npip install inferfuzzy\n```\n\n### Usage\n\nCreating linguistic variables and their associated fuzzy sets.\n\n```python\nvariable_1 = Var(\"variable_name_1\")\nvariable_1 += \"set_name_1\", ZMembership(1, 2)\nvariable_1 += \"set_name_2\", GaussianMembership(3, 2)\nvariable_1 += \"set_name_3\", SMembership(4, 6)\n\nvariable_2 = Var(\"variable_name_2\")\nvariable_2 += \"set_name_4\", GammaMembership(70, 100)\nvariable_2 += \"set_name_5\", LambdaMembership(40, 60, 80)\nvariable_2 += \"set_name_6\", LMembership(30, 50)\n```\n\nDeclaring the semantic rules and the inference method to use.\n\n```python\nmamdani = MamdaniSystem(defuzz_func=centroid_defuzzification)\nmamdani += variable_1.into(\"set_name_1\") | variable_1.into(\"set_name_3\"), variable_2.into(\"set_name_5\")\nmamdani += variable_1.into(\"set_name_2\"), variable_2.into(\"set_name_4\")\n```\n\nUsing fuzzy inference method for user-entered values.\n\n```python\nvariable_1_val = float(input())\nmamdani_result: float = mamdani.infer(variable_name_1=variable_1_val)[\"variable_name_2\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleynier%2Finferfuzzy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleynier%2Finferfuzzy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleynier%2Finferfuzzy/lists"}