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.

Files for ezdea, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size ezdea-0.0.4.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page