alteryx / alteryx/featuretools

Potentially explore having get_function be available as a decorator

Aperta
#2,180 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
2.0 wish list
Lingua principale
Python
Stelle
7.7k
Fork
915
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

`get_function` is repeated throughout every primitive. I purpose we explore the idea of making this available as a decorator instead which wraps the function needed to run in order to obtain the output. We could also add decorators for spark or dask specific functions as @rwedge mentioned.

ex:
```
class ExamplePrimitve
def get_function(self):
def example_function(x):
#some logic here
return something
return example_function
```

to

```
class ExamplePrimitve
@get_function
def example_function(x):
#some logic here
return something
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.