Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Test datatype for when passed for compuation

Abierto
#204 4 comentarios 0 reacciones 1 asignado Ver en GitHub

@codeboy5 ya está trabajando en esto.

Desde el 1/8/2020.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Severity: 3 - Medium :unamused: Status: Available :wave: Type: Improvement :chart_with_upwards_trend:

Description

When we call the result function, we just pass the python list as it is.

x = pydp.BoundedMean(1.0)
x.result([1,2,3,4])

What would be great is mention the datatype of the list in another argument,
x.result([1,2,3,4], 'int')
We want the new function definition to have the datatype as one of the argument, with float as the default argument.
Note: The function definition of result below is for representation purpose and the original code will be in c++ (pybind11).

def result(list, datatype= 'float'): 
  pass

The idea behind doing this is if we know the datatype, the underlying c++ code can become a lot efficient as right now, we are just converting everything to float.

Lenguaje dominante
Python
Estrellas
550
Forks
143
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenMined/PyDP

Todos los issues de OpenMined/PyDP

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.