related-sciences / nxontology-ml

Machine learning to classify ontology nodes
Apache License 2.0
6 stars 0 forks source link

Add model training & prediction endpoints to the library #40

Closed yonromai closed 11 months ago

yonromai commented 11 months ago

TL;DR:

from nxontology_ml.data import get_efo_otar_slim
from nxontology_ml.model.predict import train_predict

nxo = get_efo_otar_slim()
df = train_predict(nxo=nxo)

(From readme)

Some notes:

dhimmel commented 11 months ago

FWIW, schemaless exports make me a little nervous - but I guess they seem to be the norm in the data-science world

I do not disagree. We often use pydantic internally, although the ability to apply it recordwise to a pandas dataframe is somewhat lacking. On the other hand, if this pipeline breaks, it's not a big deal as long as that results in failure and not bad output in a silent manner.