Skip to main content

No project description provided

Project description

Fuzzy C-Means + mpmath

Projeto desenvolvido como Trabalho de Conclusão do Curso de Anderson de Alencar Barros

Este projeto é a implementação do método Fuzzy C-Means usando pontos flutuantes de precisão arbitrária, conhecido como bigfloats, sendo útil para projetos que requerem alta precisão onde um ponto de fluante de precisão dupla poder ocasionar erros de divisão por zero ou não ser preciso o suficiente.

Para explorar o projeto comece fazendo um clone do projeto,

git clone https://github.com/AndersonAlencarBarros/fcm

Os requisitos para executar esse projeto são,

  • Poetry
  • Python 3.10

Para instalar use o comando,

pip install fcm-mpmath

Exemplo

from fcm_mpmath import FCM
import numpy as np


X = np.array(
    [
        [1, 3],
        [2, 5],
        [4, 8],
        [7, 9],
    ]
)


fcm = FCM(n_clusters=2, mu=2)

fcm.fit(data=X)

print(fcm.centers) 

Referências

BEZDEK, J. C.; EHRLICH, R.; FULL, W. Fcm: The fuzzy c-means clustering algorithm.
Computers & geosciences, Elsevier, v. 10, n. 2-3, p. 191–203, 1984. 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fcm_mpmath-0.1.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fcm_mpmath-0.1.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file fcm_mpmath-0.1.3.tar.gz.

File metadata

  • Download URL: fcm_mpmath-0.1.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.6 Linux/5.19.0-50-generic

File hashes

Hashes for fcm_mpmath-0.1.3.tar.gz
Algorithm Hash digest
SHA256 672dc88792ef9cd67d05dd318d28e87a1285e61a996c9166283a359e5ca2f3bf
MD5 dafca29d2d051ca847bea5e36d86fed7
BLAKE2b-256 fe0b0c610dcc990a5e0f5ef20956520409263da883c07cd91fbaecb27ceab8e1

See more details on using hashes here.

File details

Details for the file fcm_mpmath-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: fcm_mpmath-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.6 Linux/5.19.0-50-generic

File hashes

Hashes for fcm_mpmath-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 38f385c442fe742662eb7bc91c53c0b5ab3e53b369692b7e7a75eb482fe70d6f
MD5 ccf77fe97b9294c2bfb155327ab66d37
BLAKE2b-256 bd01b2de138dd875dcdeca5a37b0ecb6e6e2069d8af66ecace64f475356d7423

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page