diff predict_tool_usage.py @ 2:50753817983a 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 09:38:04 +0000
parents 22ebbac136c7
children f0da532be419
line wrap: on
line diff
--- a/predict_tool_usage.py	Wed Sep 25 06:42:18 2019 -0400
+++ b/predict_tool_usage.py	Sat May 09 09:38:04 2020 +0000
@@ -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