Mercurial > repos > bgruening > create_tool_recommendation_model
diff predict_tool_usage.py @ 3:5b3c08710e47 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/tool_recommendation_model commit c635df659fe1835679438589ded43136b0e515c6"
author | bgruening |
---|---|
date | Sat, 09 May 2020 05:38:23 -0400 |
parents | 9bf25dbe00ad |
children | 4f7e6612906b |
line wrap: on
line diff
--- a/predict_tool_usage.py Fri Oct 11 18:24:54 2019 -0400 +++ b/predict_tool_usage.py Sat May 09 05:38:23 2020 -0400 @@ -21,11 +21,9 @@ class ToolPopularity: - @classmethod def __init__(self): """ Init method. """ - @classmethod def extract_tool_usage(self, tool_usage_file, cutoff_date, dictionary): """ Extract the tool usage over time for each tool @@ -63,7 +61,6 @@ tool_usage_dict[tool] = collections.OrderedDict(sorted(usage.items())) return tool_usage_dict - @classmethod def learn_tool_popularity(self, x_reshaped, y_reshaped): """ Fit a curve for the tool usage over time to predict future tool usage @@ -93,7 +90,6 @@ except Exception: return epsilon - @classmethod def get_pupularity_prediction(self, tools_usage): """ Get the popularity prediction for each tool