-
Notifications
You must be signed in to change notification settings - Fork 4
Feature/sof 2002 #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/sof 2002 #24
Changes from 8 commits
737f2ae
42f6a38
c9d2293
12304a2
a94f27b
a4018d7
5a9d5cf
1d2f91a
7459af6
755b121
57d3a98
089cb4a
e48c227
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "name": "model", | ||
| "type": "ml", | ||
| "subtype": "supervised", | ||
| "references": [ | ||
| "http://scikit-learn.org/stable/tutorial/machine_learning_map/index.html" | ||
| ], | ||
| "method": { | ||
| "...": "include(model/ml_method.json)" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
|
||
| "units": [ | ||
| { | ||
| "...": "include(workflow/ml_interface.json)" | ||
| }, | ||
| { | ||
| "...": "include(workflow/ml_fit.json)" | ||
| }, | ||
| { | ||
| "...": "include(workflow/ml_predict.json)" | ||
| } | ||
| ], | ||
| "name": "property-prediction" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
|
|
||
|
||
| { | ||
| "head": false, | ||
| "flowchartId": "2", | ||
| "name": "ModelFit", | ||
| "type": "fit", | ||
| "fit": { | ||
| "...": "include(unit/fit.json)" | ||
| } | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
|
||
| "head": true, | ||
| "flowchartId": "1", | ||
| "name": "MLInterface", | ||
| "type": "interface", | ||
| "interface": { | ||
| "...": "include(unit/interface.json)" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
|
||
| "head": false, | ||
| "flowchartId": "3", | ||
| "name": "Predict", | ||
| "type": "predict", | ||
| "predict": { | ||
| "...": "include(unit/predict.json)" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
|
||
| "compute": null, | ||
| "input": [ | ||
| { | ||
| "algorithm": "linear_regression", | ||
| "fitParameters": [ | ||
| "sample_weight" | ||
| ], | ||
| "targetProperties":[ | ||
| "band_gaps" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
|
||
| "compute": null, | ||
| "input": [ | ||
| { | ||
| "chemicalSystem": [ | ||
| "Si", | ||
| "Ge" | ||
| ], | ||
| "superset": false, | ||
| "databases": [ | ||
| "ExabyteDB" | ||
| ], | ||
| "targetMaterials":[ | ||
| "Si5Ge11" | ||
| ], | ||
| "features":[ | ||
| "Si", | ||
| "Ge", | ||
| "density" | ||
| ], | ||
| "targetProperties":[ | ||
| "band_gaps" | ||
| ], | ||
| "owner" : "paxJukXpDBiSRjfRZ" | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
|
||
| "compute": null, | ||
| "input": [ | ||
| { | ||
| "targetProperties":[ | ||
| "band_gaps" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
|
||
| "type": "prediction", | ||
| "subtype": "linear_regression", | ||
| "workflow": { | ||
| "...": "include(method/ml_workflow.json)" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| "{\"Si\":{\"c8zG3XcnnTybfP3QQ\":0.6875,\"wWK2XCyivQrG8j34Z\":0.8125},\"Ge\":{\"c8zG3XcnnTybfP3QQ\":0.3125,\"wWK2XCyivQrG8j34Z\":0.1875},\"lattice_volume\":{\"c8zG3XcnnTybfP3QQ\":327.1127749111,\"wWK2XCyivQrG8j34Z\":327.1127749111}}" | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
|
||
| "algorithm": "linear_regression", | ||
| "task": "property_prediction", | ||
| "property": "band_gaps", | ||
| "modelParameters":{ | ||
| "modelCoefficients":[ | ||
| -3.339e-01, | ||
| 2.555e-01, | ||
| -1.005e-02 | ||
| ], | ||
| "intercept": 0.45, | ||
| "score": 0.8, | ||
| "modelData" : { | ||
| "...": "(include(input_data)" | ||
| } | ||
|
|
||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
|
||
| "type": "prediction", | ||
| "subtype":"linear_regression", | ||
| "precision":{ | ||
| "...": "include(prediction/precision.json)" | ||
| }, | ||
| "data":{ | ||
| "...": "include(model_parameters/model_parameters.json)" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
|
||
| "score": 0.8 | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,9 @@ | |
| "oneOf": [ | ||
| { | ||
| "$ref": "file:theory/dft.json" | ||
| }, | ||
| { | ||
| "$ref": "file:theory/ml.json" | ||
| } | ||
| ], | ||
| "required": [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
|
||
| "$schema": "http://json-schema.org/draft-04/schema#", | ||
| "title": "ML Fit unit schema", | ||
| "type": "object", | ||
| "properties": { | ||
| "input": { | ||
| "description": "Unit's input.", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "algorithm": { | ||
| "description": "Algorithm name", | ||
| "type": "string" | ||
| }, | ||
| "fitParameters": { | ||
| "description": "Additional paramaters used for model fitting", | ||
| "type": "array" | ||
| }, | ||
| "targetProperties": { | ||
| "description": "Target properties to predict", | ||
| "type": "array" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "algorithm", | ||
| "targetProperties" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "input" | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| { | ||
|
||
| "$schema": "http://json-schema.org/draft-04/schema#", | ||
| "title": "ML Interface unit schema", | ||
| "type": "object", | ||
| "properties": { | ||
| "input": { | ||
| "description": "Unit's input.", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "trainingMaterials": { | ||
| "description": "List of training materials. Eg: ['Si3Ge5', 'SiGe']", | ||
| "type": "array" | ||
| }, | ||
| "chemicalSystem": { | ||
| "description": "List of elements in chemical system. Eg: ['Si', 'Ge']", | ||
| "type": "array" | ||
| }, | ||
| "superset": { | ||
| "description": "Input to define the list of materials formed by the elements in chemical system", | ||
| "type": "boolean" | ||
| }, | ||
| "databases": { | ||
| "description": "List of databases to get data from", | ||
| "type": "array" | ||
| }, | ||
| "features": { | ||
| "description": "List of features to use in training. Example: descriptive properties", | ||
| "type": "array" | ||
| }, | ||
| "targetMaterials": { | ||
| "description": "List of target materials. Eg: ['Si3Ge5', 'SiGe']", | ||
| "type": "array" | ||
| }, | ||
| "targetProperties": { | ||
| "description": "List of target properties", | ||
| "type": "array" | ||
| }, | ||
| "owner":{ | ||
| "description": "Exabyte ID of the material owner", | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "chemicalSystem", | ||
| "databases", | ||
| "targetMaterials", | ||
| "targetProperties" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "input" | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
|
||
| "$schema": "http://json-schema.org/draft-04/schema#", | ||
| "title": "ML Predict unit schema", | ||
| "type": "object", | ||
| "properties": { | ||
| "input": { | ||
| "description": "Unit's input.", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "targetProperties": { | ||
| "description": "Target properties to predict", | ||
| "type": "array" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "targetProperties" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "input" | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
|
||
| "$schema": "http://json-schema.org/draft-04/schema#", | ||
| "title": "ML Transform unit schema", | ||
| "type": "object", | ||
| "properties": { | ||
| "input": { | ||
| "description": "Unit's input.", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "algorithm": { | ||
| "description": "Algorithm name", | ||
| "type": "string" | ||
| }, | ||
| "fitParameters": { | ||
| "description": "Additional paramaters used for model fitting", | ||
| "type": "array" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "algorithm", | ||
| "fitParameters" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "input" | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema#", | ||
| "title": "machine learning schema", | ||
| "description": "machine learning schema", | ||
| "properties": { | ||
| "type": { | ||
| "enum": [ | ||
| "ml" | ||
| ] | ||
| }, | ||
| "subtype": { | ||
| "enum": [ | ||
| "supervised", | ||
| "unsupervised" | ||
| ] | ||
| } | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example ML model schema. A file is added here with prefix "ml_" to show an example.
The existing JSON schema for model is modified to include ML models https://github.com/Exabyte-io/exabyte-materials-json/pull/24/files#diff-d9fa058c7568fad2c154cae5ae1b8679