OpenML to JSON LD - ML-Schema/core GitHub Wiki
This page is meant to keep track of how we can automatically export datasets, tasks, algorithms, experiments from OpenML. We have recently added a JSON export function, and we can add another for JSON-LD. This page is meant to define what this JSON-LD export would look like.
JSON Export
JSON export is now possible by simply adding '/json' to API calls. When you are logged in in OpenML, you can load the following in the same session:
- Get a dataset: http://www.openml.org/api_new/v1/json/data/61
- Get a task: http://www.openml.org/api_new/v1/json/task/59
- Get an implementation: http://www.openml.org/api_new/v1/json/flow/1720
- Get a run: http://www.openml.org/api_new/v1/json/run/501579
JSON-LD Export
Run (still drafting)
{"run":{"oml:run_id":"501579","oml:uploader":"603","oml:uploader_name":"Casey Davis","oml:task_id":"59","oml:task_type":"Supervised Classification","oml:task_evaluation_measure":"predictive_accuracy","oml:flow_id":"1720","oml:flow_name":"weka.J48(33)","oml:setup_id":"2362","oml:setup_string":"weka.classifiers.trees.J48 -- -C 0.25 -M 2","oml:parameter_setting":[{"oml:name":"C","oml:value":"0.25"},{"oml:name":"M","oml:value":"2"}],"oml:tag":["weka","weka_3.7.13"],"oml:input_data":{"oml:dataset":{"oml:did":"61","oml:name":"iris","oml:url":"http://www.openml.org/data/download/61/dataset_61_iris.arff"}},"oml:output_data":{"oml:file":[{"oml:did":"5414803","oml:file_id":"1745358","oml:name":"description","oml:url":"http://www.openml.org/data/download/1745358/weka_generated_run7769371227014322202.xml"},{"oml:did":"5414806","oml:file_id":"1745361","oml:name":"model_readable","oml:url":"http://www.openml.org/data/download/1745361/WekaModel_weka.classifiers.trees.J481306807653080981411.model"},{"oml:did":"5414805","oml:file_id":"1745360","oml:name":"model_serialized","oml:url":"http://www.openml.org/data/download/1745360/WekaSerialized_weka.classifiers.trees.J487848219619191034547.model"},{"oml:did":"5414804","oml:file_id":"1745359","oml:name":"predictions","oml:url":"http://www.openml.org/data/download/1745359/weka_generated_predictions5123198195447015004.arff"}],"oml:evaluation":[{"oml:name":"area_under_roc_curve","oml:flow_id":"4","oml:value":"0.956533","oml:array_data":"[0.98,0.9408,0.9488]"},{"oml:name":"average_cost","oml:flow_id":"5","oml:value":"0"},{"oml:name":"confusion_matrix","oml:flow_id":"10","oml:array_data":"[48,2,0],[0,47,3],0,3,47"},{"oml:name":"f_measure","oml:flow_id":"12","oml:value":"0.947053","oml:array_data":"[0.979592,0.921569,0.94]"},{"oml:name":"kappa","oml:flow_id":"13","oml:value":"0.92"},{"oml:name":"kb_relative_information_score","oml:flow_id":"14","oml:value":"137.371491"},{"oml:name":"mean_absolute_error","oml:flow_id":"21","oml:value":"0.043642"},{"oml:name":"mean_prior_absolute_error","oml:flow_id":"27","oml:value":"0.444444"},{"oml:name":"number_of_instances","oml:flow_id":"34","oml:value":"150","oml:array_data":"[50,50,50]"},{"oml:name":"os_information","oml:flow_id":"53","oml:array_data":"[Oracle Corporation, 1.7.0_91, amd64, Linux, 3.13.0-32-generic]"},{"oml:name":"precision","oml:flow_id":"35","oml:value":"0.947949","oml:array_data":"[1,0.903846,0.94]"},{"oml:name":"predictive_accuracy","oml:flow_id":"36","oml:value":"0.946667"},{"oml:name":"prior_entropy","oml:flow_id":"38","oml:value":"1.584963"},{"oml:name":"recall","oml:flow_id":"39","oml:value":"0.946667","oml:array_data":"[0.96,0.94,0.94]"},{"oml:name":"relative_absolute_error","oml:flow_id":"40","oml:value":"0.098194"},{"oml:name":"root_mean_prior_squared_error","oml:flow_id":"41","oml:value":"0.471405"},{"oml:name":"root_mean_squared_error","oml:flow_id":"42","oml:value":"0.182972"},{"oml:name":"root_relative_squared_error","oml:flow_id":"43","oml:value":"0.388141"},{"oml:name":"scimark_benchmark","oml:flow_id":"55","oml:value":"473.16556","oml:array_data":"[234.94619856665477, 590.0045893659352, 178.42170181777706, 366.2252029608936, 996.2301092199508]"},{"oml:name":"total_cost","oml:flow_id":"48","oml:value":"0"},{"oml:name":"usercpu_time_millis","oml:flow_id":"906","oml:value":"0"},{"oml:name":"usercpu_time_millis_testing","oml:flow_id":"831","oml:value":"0"},{"oml:name":"usercpu_time_millis_training","oml:flow_id":"830","oml:value":"0"}]}}}