IBM / datascienceontology

Data Science Ontology
https://www.datascienceontology.org
Creative Commons Attribution 4.0 International
36 stars 14 forks source link

Guards or conditionals for argument values in function annotations #10

Open epatters opened 5 years ago

epatters commented 5 years ago

In data science packages, a single function will often implement several conceptually distinct models or methods by dispatching on the value of an argument, as in R's glm or scikit-learn's LogisticRegression (which supports multiple forms of regularization). Function annotations should support dispatching on such arguments as well.

In this package, it is enough to describe a schema that makes sense and start writing the annotations. The language-specific flow graph packages should then be updated accordingly.