[ { "@graph" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#pubinfo" } ] } ], "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RA1TIEwCNksU7KQV-UaBg8BAfyXY8r7s2HYySbQdtLPh4#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#_plan" } ], "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes" : [ { "@id" : "http://purl.org/np/RA9zynERhvXYGsX1QHuXIjspHs1tcEEPcPVn50SAeRpbs#step" } ] }, { "@id" : "http://purl.org/np/RA1oai4CQltX5_VFi6DtM7ORIQRxHCZY4ydoab4hmCkSo#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#_plan" } ], "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes" : [ { "@id" : "http://purl.org/np/RA9zynERhvXYGsX1QHuXIjspHs1tcEEPcPVn50SAeRpbs#step" }, { "@id" : "http://purl.org/np/RApbj1YoRfCXtmVuilfmz_dfYTt_Eg88C2PdjDPhLwCjA#step" } ] }, { "@id" : "http://purl.org/np/RA9zynERhvXYGsX1QHuXIjspHs1tcEEPcPVn50SAeRpbs#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#_plan" } ] }, { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#_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/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#_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):\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/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#_LinguisticSystem" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "My model training workflow" } ] }, { "@id" : "http://purl.org/np/RApbj1YoRfCXtmVuilfmz_dfYTt_Eg88C2PdjDPhLwCjA#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#_plan" } ], "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes" : [ { "@id" : "http://purl.org/np/RA1TIEwCNksU7KQV-UaBg8BAfyXY8r7s2HYySbQdtLPh4#step" }, { "@id" : "http://purl.org/np/RA9zynERhvXYGsX1QHuXIjspHs1tcEEPcPVn50SAeRpbs#step" } ] }, { "@id" : "http://purl.org/np/RAyDNF9pML1fsbqlxr24q2-ttG7wARbLZVgrJs8j7OX9E#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#_plan" } ], "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes" : [ { "@id" : "http://purl.org/np/RApbj1YoRfCXtmVuilfmz_dfYTt_Eg88C2PdjDPhLwCjA#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/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#_result" } ] } ], "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#assertion", "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2022-12-21T14:36:28.595644" } ] } ], "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY", "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0000-0000-0000" } ] }, { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#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" : "Gm+Gdkz+B7ynzIK+wwxmBqTH6Bvh4J6Nhbx+sQF2ry2EPMwOmGBra/ViMDmfv6qbg/1U8PNnVPJjva8BvOuoh6EauhpCoZ98BKKh2ocK1GmgauicMyPHBnqBO5awSukvRaRrw0/SvxPuoIR2OVqfZdYzJsvJ54HinLLHyL5aC111K52syvBSL+p9mlxcGoUtGaOXhXHjqgDlUwbBwBnaYUKv3pUWi6o7FMYMDrdhLSEAK3Gfdmw+WOOlEJR4Rb6oTBOXlRNpf3yYctCt7t5SK6ORwmTuuWwpv+OYi9khUqLuaLQdJIABsPFbsc47ijyB06ZGzSmq5T9MFWM38m65ug==" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY" } ] } ], "@id" : "http://purl.org/np/RAEgnAkgrWS-PkjsIAiajs3w6_azYTxi4Kdupd0IRLBlY#pubinfo" } ]