-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored Algorithm specifications. (#480)
- The specs are loaded by the json files. - Added type to the specifications of the algorithms (necessary before the integration of the flower on the repo)
- Loading branch information
1 parent
148ddec
commit d350381
Showing
74 changed files
with
695 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
exareme2/algorithms/exareme2/logistic_regression_fedaverage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"name": "logistic_regression_cv_fedaverage", | ||
"desc": "Method used to evaluate the performance of a logistic regression model. It involves splitting the data into training and validation sets and testing the model's ability to generalize to new data by using the validation set.", | ||
"label": "Logistic Regression Cross-validation", | ||
"enabled": true, | ||
"type": "exareme2", | ||
"inputdata": { | ||
"y": { | ||
"label": "Variable (dependent)", | ||
"desc": "A unique nominal variable. The variable is converted to binary by assigning 1 to the positive class and 0 to all other classes. ", | ||
"types": [ | ||
"int", | ||
"text" | ||
], | ||
"stattypes": [ | ||
"nominal" | ||
], | ||
"notblank": true, | ||
"multiple": false | ||
}, | ||
"x": { | ||
"label": "Covariates (independent)", | ||
"desc": "One or more variables. Can be numerical or nominal. For nominal variables dummy encoding is used.", | ||
"types": [ | ||
"real", | ||
"int", | ||
"text" | ||
], | ||
"stattypes": [ | ||
"numerical", | ||
"nominal" | ||
], | ||
"notblank": true, | ||
"multiple": true | ||
} | ||
}, | ||
"parameters": { | ||
"positive_class": { | ||
"label": "Positive class", | ||
"desc": "Positive class of y. All other classes are considered negative.", | ||
"types": [ | ||
"text", | ||
"int" | ||
], | ||
"notblank": true, | ||
"multiple": false, | ||
"enums": { | ||
"type": "input_var_CDE_enums", | ||
"source": [ | ||
"y" | ||
] | ||
} | ||
}, | ||
"n_splits": { | ||
"label": "Number of splits", | ||
"desc": "Number of splits for cross-validation.", | ||
"types": [ | ||
"int" | ||
], | ||
"notblank": true, | ||
"multiple": false, | ||
"default": 5, | ||
"min": 2, | ||
"max": 20 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
exareme2/algorithms/exareme2/longitudinal_transformer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name":"longitudinal_transformer", | ||
"desc":"longitudinal_transform", | ||
"label":"Longitudinal Transformer", | ||
"enabled":true, | ||
"type": "exareme2_transformer", | ||
"parameters":{ | ||
"visit1": { | ||
"label":"1st Visit", | ||
"desc":"The data of a certain subject's measurements during a specific visit on a specific date.", | ||
"types":["text"], | ||
"notblank":true, | ||
"multiple":false, | ||
"enums":{ | ||
"type":"fixed_var_CDE_enums", "source":["visitid"] | ||
|
||
} | ||
}, | ||
"visit2": { | ||
"label":"2nd Visit", | ||
"desc":"The data of the same subject's measurements during a specific visit on a specific but different, later date.", | ||
"types":["text"], | ||
"notblank":true, | ||
"multiple":false, | ||
"enums": { | ||
"type": "fixed_var_CDE_enums", "source":["visitid"] | ||
} | ||
}, | ||
"strategies": { | ||
"label":"Strategies", | ||
"desc":"Select a strategy for each variable.", | ||
"types":["dict"], | ||
"notblank":true, | ||
"multiple":false, | ||
"dict_keys_enums":{ | ||
"type":"input_var_names", "source":["x", "y"] | ||
}, | ||
"dict_values_enums":{ | ||
"type": "list", "source":["diff", "first", "second"] | ||
} | ||
} | ||
}, | ||
"compatible_algorithms":[ | ||
"anova", | ||
"anova_oneway", | ||
"linear_regression", | ||
"linear_regression_cv", | ||
"logistic_regression", | ||
"logistic_regression_cv", | ||
"naive_bayes_gaussian_cv", | ||
"naive_bayes_categorical_cv" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.