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