Make a `graphviz.Digraph` object based on code (string or function's body)
Closed this issue · 0 comments
thorwhalen commented
from meshed.makers import simple_code_to_digraph
def user_story(
data_source,
featurizer_learner,
outlier_gauger_learner,
):
wfs = make_wfs(data_source)
chks = chunker(wfs)
train_chks, test_chks = splitter(chks)
featurizer_obj = learn_featurizer(featurizer_learner, train_chks)
train_fvs = featurizer(featurizer_obj, train_chks)
outlier_gauger_obj = learn_outlier_gauger(outlier_gauger_learner, train_fvs)
train_outlier_scores = outlier_gauger(outlier_gauger_obj, train_fvs)
simple_code_to_digraph(user_story)