[ { "@graph" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#pubinfo" } ] } ], "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RABOjyS7TxSjPSWFx0ROwh5t5nvaKfxvY8-gGK4sjfKhc#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#_plan" } ] }, { "@id" : "http://purl.org/np/RASL6xPm7Lho_gRIEsqGrTfb7im94jHSUXBWaIZnruqBs#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#_plan" } ], "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes" : [ { "@id" : "http://purl.org/np/RABOjyS7TxSjPSWFx0ROwh5t5nvaKfxvY8-gGK4sjfKhc#step" }, { "@id" : "http://purl.org/np/RAifTaXSJe1pqe3q0uLcU9lgd3k6QaSlNYWfbbjvY3WYc#step" } ] }, { "@id" : "http://purl.org/np/RASeobz5KgKilIHtMKDxCcOQltotMmxybMaIlJFU4rOHM#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#_plan" } ], "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes" : [ { "@id" : "http://purl.org/np/RABOjyS7TxSjPSWFx0ROwh5t5nvaKfxvY8-gGK4sjfKhc#step" }, { "@id" : "http://purl.org/np/RASL6xPm7Lho_gRIEsqGrTfb7im94jHSUXBWaIZnruqBs#step" } ] }, { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#_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/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#_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/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#_LinguisticSystem" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "My model training workflow" } ] }, { "@id" : "http://purl.org/np/RAifTaXSJe1pqe3q0uLcU9lgd3k6QaSlNYWfbbjvY3WYc#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#_plan" } ], "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes" : [ { "@id" : "http://purl.org/np/RABOjyS7TxSjPSWFx0ROwh5t5nvaKfxvY8-gGK4sjfKhc#step" } ] }, { "@id" : "http://purl.org/np/RAy_wEC_mXoqc-ZSPK_ZebjHZ_A76JwSmPdkRFdY3Bff8#step", "http://purl.org/net/p-plan#isStepOfPlan" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#_plan" } ], "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#precedes" : [ { "@id" : "http://purl.org/np/RASL6xPm7Lho_gRIEsqGrTfb7im94jHSUXBWaIZnruqBs#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/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#_result" } ] } ], "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#assertion", "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2022-12-21T14:40:57.515937" } ] } ], "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw", "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0000-0000-0000" } ] }, { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#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" : "TjYWnjUeUYbEmQ28jqwsQbD6RCSFfd2CR1n/4belgkxdeGxbbNhNpGxlVeU0rM7hi3o83Anp++efrAUzwHx6xzf43Pvi4IRgmtfAxWu80Eex2cndsc4nijRuK9P6lD0vDqZXwYNneIE1n4Efiu4dNMYnE86jlOAmewvHTYO1kD11hNv3lfDYjVK7qNC52UIPLovJnAnGM22djd+p/PbN4etwXmAm8i2EPxDZs9eMPoBJqqm71os7cidqHWxot5Xhb0/EV6XngKXUGsUBYl08AukrrDO1R78PMcvT+P7PgECuIevFuUwpK2z6qMBd3f7p0bkr/4zJGd5eBbqfdfhk6A==" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw" } ] } ], "@id" : "http://purl.org/np/RAbtP6jK3_FwGq46FqLAvHZKbjmmoaU838UHE-IrgR2Rw#pubinfo" } ]