Skip to main content

DEA - python interface

Project description

Ezdea promove facilidade ao usar DEA com Python

Como usar:

# crie a situação a ser analisada. No nosso caso será a seguinte matriz:
from ezdea import DEA
import pandas as pd

matriz = [[20, 151, 100, 90],
          [19, 131, 150, 50],
          [25, 160, 160, 55],
          [27, 168, 180, 72],
          [22, 158, 94, 66],
          [55, 255, 230, 90],
          [33, 235, 220, 88],
          [31, 206, 152, 80],
          [30, 244, 290, 100],
          [50, 268, 250, 100],
          [53, 306, 262, 147],
          [38, 284, 250, 120]]
          
# declare as entradas e saídas do problema
numero_inputs = 2
numero_outputs = 2

# instancie o cenário
cenario = DEA(matriz, numero_inputs, numero_outputs)
resultado_bcc = cenario.bcc_dual_input(matrix=True) # matrix = True força que o retorno seja matriz e não json
df_bcc_dual = pd.DataFrame(resultado_bcc)
print(df_bcc_dual)
metas = cenario.calcular_metas(resultado_bcc)
df_metas = pd.DataFrame(metas)
print(df_metas)

Lista de métodos:

  • DEA.ccr_primal_input(matrix=False)

  • DEA.ccr_primal_output(matrix=False)

  • DEA.ccr_dual_input(matrix=False)

  • DEA.ccr_dual_output(matrix=False)

  • DEA.bcc_primal_input(matrix=False)

  • DEA.bcc_primal_output(matrix=False)

  • DEA.bcc_dual_input(matrix=False)

  • DEA.bcc_dual_output(matrix=False)

  • DEA.calcular_metas(matriz_dual)

próximo passo: subir para o PyPi

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

ezdea-0.0.4.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file ezdea-0.0.4.tar.gz.

File metadata

  • Download URL: ezdea-0.0.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

File hashes

Hashes for ezdea-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ff8cd75c88e95e893d5c4a0c30ad51b0d8521167a8b9398060f24f651ee94b60
MD5 1a9849d21ddbe718d4c137d6820bd2b2
BLAKE2b-256 3f7cfdd3f7dfbb69f9c4829593a2b059ae7ca27cfd54f66fb0607766d1993384

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