http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#Head http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o http://www.nanopub.org/nschema#hasAssertion http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#assertion http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o http://www.nanopub.org/nschema#hasProvenance http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#provenance http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o http://www.nanopub.org/nschema#hasPublicationInfo http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#pubinfo http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.nanopub.org/nschema#Nanopublication http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#assertion http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_LinguisticSystem http://www.w3.org/1999/02/22-rdf-syntax-ns#type https://schema.org/ComputerLanguage http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_LinguisticSystem http://www.w3.org/2000/01/rdf-schema#label python http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_LinguisticSystem http://www.w3.org/2000/01/rdf-schema#seeAlso https://www.wikidata.org/wiki/Q28865 http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_LinguisticSystem http://www.w3.org/2002/07/owl#versionInfo 3.9.15.final.0 http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_plan http://purl.org/dc/terms/description @is_fairworkflow(label='My model training workflow') def training_workflow(n_jobs: int): # Define models hyper params hyper_params = { 'n_jobs': n_jobs, 'random_state': 42 } data = load_data() y = load_data_y() # Train model (here we use a stub dataset just to make the example clear) model = fit_classifier(hyper_params, data, y) # Evaluate the model using your own metrics scores = evaluate(model) # Save the model generated to the models/ folder path = save( model, "models/my_model", sample_data=data, scores=scores, hyper_params=hyper_params, ) return path # Optionally you can save other files (dataframes, JSON objects) in the data/ folder http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_plan http://purl.org/dc/terms/language http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_LinguisticSystem http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_plan http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://purl.org/net/p-plan#Plan http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_plan http://www.w3.org/2000/01/rdf-schema#label My model training workflow http://purl.org/np/RA38bU_sa5fKMd_ShiqBW7YOPDQNT2ZHPu86JeprVfIVs#step http://purl.org/net/p-plan#isStepOfPlan http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_plan http://purl.org/np/RA38bU_sa5fKMd_ShiqBW7YOPDQNT2ZHPu86JeprVfIVs#step http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes http://purl.org/np/RAe1C9VcwXAm6MLhVdnlrYU6d5gSfIaFWdxhE9pnjJtzY#step http://purl.org/np/RA38bU_sa5fKMd_ShiqBW7YOPDQNT2ZHPu86JeprVfIVs#step http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes http://purl.org/np/RAlSorsmcc6CrtJZwkcI-q693omxNTcr_TvnfLfH_bA0Q#step http://purl.org/np/RAKXkumGLkuIgnPj5A3OSC22ZUipeKMuMYMzk7HzZrx8w#step http://purl.org/net/p-plan#isStepOfPlan http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_plan http://purl.org/np/RAKXkumGLkuIgnPj5A3OSC22ZUipeKMuMYMzk7HzZrx8w#step http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes http://purl.org/np/RA38bU_sa5fKMd_ShiqBW7YOPDQNT2ZHPu86JeprVfIVs#step http://purl.org/np/RAKXkumGLkuIgnPj5A3OSC22ZUipeKMuMYMzk7HzZrx8w#step http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes http://purl.org/np/RAlSorsmcc6CrtJZwkcI-q693omxNTcr_TvnfLfH_bA0Q#step http://purl.org/np/RAe1C9VcwXAm6MLhVdnlrYU6d5gSfIaFWdxhE9pnjJtzY#step http://purl.org/net/p-plan#isStepOfPlan http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_plan http://purl.org/np/RAe1C9VcwXAm6MLhVdnlrYU6d5gSfIaFWdxhE9pnjJtzY#step http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes http://purl.org/np/RAlSorsmcc6CrtJZwkcI-q693omxNTcr_TvnfLfH_bA0Q#step http://purl.org/np/RAlSorsmcc6CrtJZwkcI-q693omxNTcr_TvnfLfH_bA0Q#step http://purl.org/net/p-plan#isStepOfPlan http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_plan http://purl.org/np/RAo-VK51bx4tcsFVApUwm41fGy7wvoWuJkEQraWKfISJU#step http://purl.org/net/p-plan#isStepOfPlan http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_plan http://purl.org/np/RAo-VK51bx4tcsFVApUwm41fGy7wvoWuJkEQraWKfISJU#step http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes http://purl.org/np/RA38bU_sa5fKMd_ShiqBW7YOPDQNT2ZHPu86JeprVfIVs#step http://www.example.org/unpublished-evaluate#out1 http://purl.org/net/p-plan#bindsTo http://www.example.org/unpublished-save#scores http://www.example.org/unpublished-fit_classifier#out1 http://purl.org/net/p-plan#bindsTo http://www.example.org/unpublished-evaluate#model http://www.example.org/unpublished-fit_classifier#out1 http://purl.org/net/p-plan#bindsTo http://www.example.org/unpublished-save#model http://www.example.org/unpublished-load_data#out1 http://purl.org/net/p-plan#bindsTo http://www.example.org/unpublished-fit_classifier#data http://www.example.org/unpublished-load_data#out1 http://purl.org/net/p-plan#bindsTo http://www.example.org/unpublished-save#sample_data http://www.example.org/unpublished-load_data_y#out1 http://purl.org/net/p-plan#bindsTo http://www.example.org/unpublished-fit_classifier#y http://www.example.org/unpublished-save#out1 http://purl.org/net/p-plan#bindsTo http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#_result http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#provenance http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#assertion http://www.w3.org/ns/prov#generatedAtTime 2022-12-21T18:13:13.818414 http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#pubinfo http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#sig http://purl.org/nanopub/x/hasAlgorithm RSA http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#sig http://purl.org/nanopub/x/hasPublicKey MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlKZel+uM9w+JiWuhs0NHtaXdRrGkGAjvnnLFQL2nmgZDGIjX+is2YJBd6R2kBkr67lYiUDWdtih0F0yqUlAW5GdYUihk1MBiWyLe4RNt7I5iC/5wwK/i5vV6/YKa6Zwf4oymwChpdXddlKc6d73StgFqOafQPeNeBUHTZbkmUKFAqGXf0nAclB23DEeN5qVl6XRa1qqtL91AKW+UxTvlZR3pFNFn8xKTfbOSgmuAkYSUwJrp84rNI92qXYtOJ12oH0oT/enzcThxcfPLomGc9BMd+QBCj08LdrtuAArHzcivMKDzreDCD+haZ/GdObRWHpQ5O4bEWIx3dZVQq7t0KQIDAQAB http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#sig http://purl.org/nanopub/x/hasSignature CtDaJDADFhjK2Z6Y9YUUIGhMoe9Cucyahe++SAQMX9MZdVueG1hSCqwVEWkTG3sUcIDMbxRoIYejItBOCZLcJw3HYgYfoA4fPjET+nnWlWRY+ifkg/em6rLBWRsOsAaz9b7PqVjykQ53Y3pQYuQpYDBYjUGw4/bSQLRWkzIDc6mhEJvPIQDx6oB3cjcjlVUn16JkPlnbkAUUFD64PGQK6xlI6OisgNbo+KRm789YTxoM+tByFz9Bo4H2vA7y2+UNjjLGZR6gf6E1aMXQZ9nsfVewG2dSdoFnNDhlOooX2Ps1TEeXWCxaIe5zDUZN6omoTkgo92Nt1565cVE18wdTWg== http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o#sig http://purl.org/nanopub/x/hasSignatureTarget http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o http://purl.org/np/RA0djZHLoIColxjUGWnBLbJsq37idvaQitaxfIZlp081o http://www.w3.org/ns/prov#wasAttributedTo https://orcid.org/0000-0000-0000-0000