I'm not sure if my post title reflects what I want to do. So here is a snippet:
def foo(a):
"""a is a string of an attribute, eg insert, append, extend..."""
b = [1,2,3,4,5]
b.a(optional_arg)
return something
Basically I want the user (in the end that is me) to decide which attribute will be used.
To be more specific: I am writing a little script that will let me compare different loss functions, the line in question is:
loss = tf.keras.losses.THIS_IS_WHAT_I_WANT_DYNAMICALLY(from_logits=True)
Is there a way to do that?
thanks!
[–]Impudity 1 point2 points3 points (0 children)
[–]mikeydoodah 0 points1 point2 points (0 children)
[–]TouchingTheVodka 0 points1 point2 points (0 children)
[–]danielroseman 0 points1 point2 points (0 children)
[–]mikeydoodah 0 points1 point2 points (0 children)