|
1 | 1 | module MLJModelInterface
|
2 | 2 |
|
| 3 | +const MODEL_TRAITS = [ |
| 4 | + :input_scitype, :output_scitype, :target_scitype, |
| 5 | + :is_pure_julia, :package_name, :package_license, |
| 6 | + :load_path, :package_uuid, :package_url, |
| 7 | + :is_wrapper, :supports_weights, :supports_online, |
| 8 | + :docstring, :name, :is_supervised, |
| 9 | + :prediction_type, :implemented_methods, :hyperparameters, |
| 10 | + :hyperparameter_types, :hyperparameter_ranges] |
| 11 | + |
3 | 12 | # ------------------------------------------------------------------------
|
4 | 13 | # Dependencies (ScientificTypes and StatisticalTraits have none)
|
5 | 14 | using ScientificTypes
|
@@ -29,13 +38,9 @@ export fit, update, update_data, transform, inverse_transform,
|
29 | 38 | predict_joint, evaluate, clean!, reformat
|
30 | 39 |
|
31 | 40 | # model traits
|
32 |
| -export input_scitype, output_scitype, target_scitype, |
33 |
| - is_pure_julia, package_name, package_license, |
34 |
| - load_path, package_uuid, package_url, |
35 |
| - is_wrapper, supports_weights, supports_online, |
36 |
| - docstring, name, is_supervised, |
37 |
| - prediction_type, implemented_methods, hyperparameters, |
38 |
| - hyperparameter_types, hyperparameter_ranges |
| 41 | +for trait in MODEL_TRAITS |
| 42 | + @eval(export $trait) |
| 43 | +end |
39 | 44 |
|
40 | 45 | # data operations
|
41 | 46 | export matrix, int, classes, decoder, table,
|
|
0 commit comments