I have a function called "LoadDataClassForImageClassification" and i dont want the user to type it again and again... I tried
def LoadDataClassForImageClassification():
print('Loading...')
## ML THINGS
x = LoadDataClassForImageClassification()
x()
You can create a variable that it's value is the address of the function
def LoadDataClassForImageClassification():
print('Loading...')
x = LoadDataClassForImageClassification
print(x) # <function LoadDataClassForImageClassification at 0x7f96363f11f0> # for example
x()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With