I am using python 3 with jupyter notebook. I implemented simple widgets that take method name and parameter values as inputs from users. Parameters of the method depends on the method itself
For example, in a run event both of the functions below can be called according to methods and parameter values user chose
KMeans(n_clusters=2, random_state=0, n_init=10).fit(X)
AgglomerativeClustering(n_clusters=12, affinity='euclidean').fit(X)
I can form the parameters as strings but I could not pass it to functions. is there a way to execute those functions in string form?