Skip to content
Permalink
Browse files

Removed generics for learner config.

Instead of a specific type, the config handler always takes a map from
String to Object. This provides flexibility and simultaneously potential
for more rigorously documented config spaces (whenever desired or
needed) implementing a specific configuration class.
  • Loading branch information...
mwever committed Aug 29, 2019
1 parent f04f1fa commit 1cb70aefdf23ab1121da67bb29c952ed6f6e4068
Showing with 741 additions and 699 deletions.
  1. +16 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/IClassifier.java
  2. +7 −0 ...va/org/api4/java/ai/ml/classification/multilabel/dataset/IMultiLabelClassificationDataSource.java
  3. +2 −2 ...ssification/multilabel → classification/multilabel/dataset}/IMultiLabelClassificationDataset.java
  4. +10 −0 ...java/org/api4/java/ai/ml/classification/multilabel/dataset/IMultiLabelClassificationInstance.java
  5. +1 −1 ...set/supervised/classification/multilabel → classification/multilabel/dataset}/IMultiLabelSet.java
  6. +5 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/multilabel/dataset/package-info.java
  7. +9 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/multilabel/learner/IMultiLabelClassifier.java
  8. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/multilabel/learner/package-info.java
  9. +9 −0 ...ava/org/api4/java/ai/ml/classification/multilabel/loss/IMultiLabelClassificationLossFunction.java
  10. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/multilabel/loss/package-info.java
  11. +5 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/multilabel/package-info.java
  12. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/package-info.java
  13. +7 −0 .../org/api4/java/ai/ml/classification/singlelabel/dataset/ISingleLabelClassificationDataSource.java
  14. +2 −2 ...fication/singlelabel → classification/singlelabel/dataset}/ISingleLabelClassificationDataset.java
  15. +10 −0 ...va/org/api4/java/ai/ml/classification/singlelabel/dataset/ISingleLabelClassificationInstance.java
  16. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/singlelabel/dataset/package-info.java
  17. +14 −0 .../src/main/java/org/api4/java/ai/ml/classification/singlelabel/learner/ISingleLabelClassifier.java
  18. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/singlelabel/learner/package-info.java
  19. +7 −0 ...rc/main/java/org/api4/java/ai/ml/classification/singlelabel/loss/IClassificationLossFunction.java
  20. +7 −0 .../api4/java/ai/ml/classification/singlelabel/loss/ISingleLabelClassificationBatchLossFunction.java
  21. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/singlelabel/loss/package-info.java
  22. +5 −0 ai/ml/src/main/java/org/api4/java/ai/ml/classification/singlelabel/package-info.java
  23. +9 −0 ai/ml/src/main/java/org/api4/java/ai/ml/clustering/learner/IClusterer.java
  24. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/clustering/learner/package-info.java
  25. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/clustering/package-info.java
  26. +3 −3 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/IDataSource.java
  27. +2 −2 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/IDataset.java
  28. +2 −2 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/IInstance.java
  29. +11 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/schema/IInstanceSchema.java
  30. +2 −2 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/IInstanceSchemaHandler.java
  31. +9 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/schema/ILabeledInstanceSchema.java
  32. +2 −2 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/ILabeledInstanceSchemaHandler.java
  33. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IAttribute.java
  34. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IAttributeValue.java
  35. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IMultiLabelAttribute.java
  36. +1 −1 ...c/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IMultiLabelAttributeValue.java
  37. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/INominalAttribute.java
  38. +1 −1 .../src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/INominalAttributeValue.java
  39. +5 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/schema/attribute/INumericAttribute.java
  40. +1 −1 .../src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/INumericAttributeValue.java
  41. +1 −1 ...c/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/INumericEncodingAttribute.java
  42. +5 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/schema/attribute/IObjectAttribute.java
  43. +1 −1 ...l/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IObjectAttributeValue.java
  44. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IOrdinalAttribute.java
  45. +1 −1 .../src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IOrdinalAttributeValue.java
  46. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/schema/attribute/IRankingAttribute.java
  47. +2 −2 .../src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IRankingAttributeValue.java
  48. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IStringAttribute.java
  49. +1 −1 ...l/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/IStringAttributeValue.java
  50. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/schema/attribute/ITimeseriesAttribute.java
  51. +2 −2 ...c/main/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/ITimeseriesAttributeValue.java
  52. +1 −1 ...n/java/org/api4/java/ai/ml/{ → core}/dataset/schema/attribute/NoValidAttributeValueException.java
  53. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/schema/package-info.java
  54. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/serialization/IDatasetDeserializer.java
  55. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/serialization/IDatsetSerializer.java
  56. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/serialization/package-info.java
  57. +3 −3 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/splitter/IDatasetSplitter.java
  58. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/splitter/ISupervisedDatasetSplitter.java
  59. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/splitter/SplitFailedException.java
  60. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/splitter/package-info.java
  61. +3 −3 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/supervised/ILabeledDataSource.java
  62. +2 −2 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/supervised/ILabeledDataset.java
  63. +3 −3 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/dataset/supervised/ILabeledInstance.java
  64. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/supervised/package-info.java
  65. +14 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/trace/IDatasetTraceInstruction.java
  66. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/dataset/trace/package-info.java
  67. +1 −1 ...rc/main/java/org/api4/java/ai/ml/{ → core/evaluation/learningcurve}/IAnalyticalLearningCurve.java
  68. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core/evaluation/learningcurve}/ILearningCurve.java
  69. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/evaluation/learningcurve/package-info.java
  70. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core/evaluation}/loss/IBatchLossFunction.java
  71. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core/evaluation}/loss/ILossFunction.java
  72. +1 −1 ...in/java/org/api4/java/ai/ml/{dataset → core}/exception/ContainsNonNumericAttributesException.java
  73. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{dataset → core}/exception/DatasetCreationException.java
  74. +11 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/exception/DatasetTraceInstructionFailedException.java
  75. +1 −1 ...main/java/org/api4/java/ai/ml/{learner → core}/exception/LearnerConfigurationFailedException.java
  76. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{learner → core}/exception/PredictionException.java
  77. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{learner → core}/exception/TrainingException.java
  78. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/exception/package-info.java
  79. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/filter/package-info.java
  80. +5 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/filter/supervised/package-info.java
  81. +9 −0 ...c/main/java/org/api4/java/ai/ml/core/filter/supervised/sampling/ISupervisedSamplingAlgorithm.java
  82. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/filter/supervised/sampling/package-info.java
  83. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/filter/unsupervised/package-info.java
  84. +3 −3 .../src/main/java/org/api4/java/ai/ml/{ → core}/filter/unsupervised/sampling/ISamplingAlgorithm.java
  85. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/filter/unsupervised/sampling/package-info.java
  86. +11 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/learner/IFittable.java
  87. +7 −7 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/learner/IFittablePredictor.java
  88. +23 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/learner/ILearnerConfigHandler.java
  89. +5 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/learner/IMLModel.java
  90. +6 −6 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/learner/IPredictor.java
  91. +10 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/learner/IProbabilisticPredictor.java
  92. +17 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/learner/ISupervisedLearner.java
  93. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/learner/IUnsupervisedLearner.java
  94. +2 −2 .../java/org/api4/java/ai/ml/{activelearning → core/learner/active}/IActiveLearningPoolProvider.java
  95. +2 −2 ...n/java/org/api4/java/ai/ml/{activelearning → core/learner/active}/ISelectiveSamplingStrategy.java
  96. +2 −2 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/learner/algorithm/IBatchPredictionAlgorithm.java
  97. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/learner/algorithm/IGenericPredictionAlgorithm.java
  98. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/learner/algorithm/IPrediction.java
  99. +2 −2 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/learner/algorithm/IPredictionAlgorithm.java
  100. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/learner/algorithm/IPredictionBatch.java
  101. +4 −4 ai/ml/src/main/java/org/api4/java/ai/ml/{ → core}/learner/algorithm/ISupervisedFitAlgorithm.java
  102. +10 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/learner/algorithm/IUnsupervisedFitAlgorithm.java
  103. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/learner/algorithm/package-info.java
  104. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/core/package-info.java
  105. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/exception/package-info.java
  106. +0 −11 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/schema/IInstanceSchema.java
  107. +0 −9 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/schema/ILabeledInstanceSchema.java
  108. +0 −5 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/schema/attribute/INumericAttribute.java
  109. +0 −5 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/schema/attribute/IObjectAttribute.java
  110. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/schema/attribute/IRankingAttribute.java
  111. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/schema/attribute/ITimeseriesAttribute.java
  112. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/schema/package-info.java
  113. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/serialization/package-info.java
  114. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/splitter/ISupervisedDatasetSplitter.java
  115. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/splitter/package-info.java
  116. +0 −7 .../java/ai/ml/dataset/supervised/classification/multilabel/IMultiLabelClassificationDataSource.java
  117. +0 −10 ...i4/java/ai/ml/dataset/supervised/classification/multilabel/IMultiLabelClassificationInstance.java
  118. +0 −5 .../src/main/java/org/api4/java/ai/ml/dataset/supervised/classification/multilabel/package-info.java
  119. +0 −5 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/classification/package-info.java
  120. +0 −7 ...ava/ai/ml/dataset/supervised/classification/singlelabel/ISingleLabelClassificationDataSource.java
  121. +0 −10 .../java/ai/ml/dataset/supervised/classification/singlelabel/ISingleLabelClassificationInstance.java
  122. +0 −8 ...src/main/java/org/api4/java/ai/ml/dataset/supervised/classification/singlelabel/package-info.java
  123. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/ranking/IRankingDataSource.java
  124. +0 −10 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/ranking/IRankingInstance.java
  125. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/ranking/dyad/IDyadRankingDataSource.java
  126. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/ranking/dyad/IDyadRankingDataset.java
  127. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/ranking/dyad/IDyadRankingInstance.java
  128. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/ranking/dyad/package-info.java
  129. +0 −7 ...l/src/main/java/org/api4/java/ai/ml/dataset/supervised/ranking/label/ILabelRankingDataSource.java
  130. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/ranking/label/ILabelRankingDataset.java
  131. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/ranking/label/ILabelRankingInstance.java
  132. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/regression/IRegressionDataSource.java
  133. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/regression/IRegressionDataset.java
  134. +0 −10 ai/ml/src/main/java/org/api4/java/ai/ml/dataset/supervised/regression/IRegressionInstance.java
  135. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/filter/package-info.java
  136. +0 −5 ai/ml/src/main/java/org/api4/java/ai/ml/filter/supervised/package-info.java
  137. +0 −9 ai/ml/src/main/java/org/api4/java/ai/ml/filter/supervised/sampling/ISupervisedSamplingAlgorithm.java
  138. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/filter/supervised/sampling/package-info.java
  139. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/filter/unsupervised/package-info.java
  140. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/filter/unsupervised/sampling/package-info.java
  141. +0 −11 ai/ml/src/main/java/org/api4/java/ai/ml/learner/IFittable.java
  142. +0 −5 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ILearnerConfig.java
  143. +0 −9 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ILearnerConfigHandler.java
  144. +0 −5 ai/ml/src/main/java/org/api4/java/ai/ml/learner/IMLModel.java
  145. +0 −10 ai/ml/src/main/java/org/api4/java/ai/ml/learner/IProbabilisticPredictor.java
  146. +0 −18 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ISupervisedLearner.java
  147. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/learner/IUnsupervisedLearner.java
  148. +0 −10 ai/ml/src/main/java/org/api4/java/ai/ml/learner/algorithm/IUnsupervisedFitAlgorithm.java
  149. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/learner/algorithm/package-info.java
  150. +0 −9 ai/ml/src/main/java/org/api4/java/ai/ml/learner/classifier/multilabel/IMultiLabelClassifier.java
  151. +0 −5 .../src/main/java/org/api4/java/ai/ml/learner/classifier/multilabel/IMultiLabelClassifierConfig.java
  152. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/learner/classifier/multilabel/package-info.java
  153. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/learner/classifier/package-info.java
  154. +0 −18 ai/ml/src/main/java/org/api4/java/ai/ml/learner/classifier/singlelabel/ISingleLabelClassifier.java
  155. +0 −7 ...rc/main/java/org/api4/java/ai/ml/learner/classifier/singlelabel/ISingleLabelClassifierConfig.java
  156. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/learner/classifier/singlelabel/package-info.java
  157. +0 −9 ai/ml/src/main/java/org/api4/java/ai/ml/learner/clusterer/IClusterer.java
  158. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/learner/clusterer/IClustererConfig.java
  159. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/learner/clusterer/package-info.java
  160. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/learner/exception/package-info.java
  161. +0 −18 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ranker/IRanker.java
  162. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ranker/IRankerConfig.java
  163. +0 −10 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ranker/dyad/IDyadRanker.java
  164. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ranker/dyad/IDyadRankerConfig.java
  165. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ranker/dyad/package-info.java
  166. +0 −9 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ranker/label/ILabelRanker.java
  167. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ranker/label/ILabelRankerConfig.java
  168. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/learner/ranker/label/package-info.java
  169. +0 −9 ai/ml/src/main/java/org/api4/java/ai/ml/learner/regressor/IRegressor.java
  170. +0 −7 ai/ml/src/main/java/org/api4/java/ai/ml/learner/regressor/IRegressorConfig.java
  171. +0 −9 ...ava/org/api4/java/ai/ml/loss/classification/multilabel/IMultiLabelClassificationLossFunction.java
  172. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/loss/classification/multilabel/package-info.java
  173. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/loss/classification/package-info.java
  174. +0 −7 ...rc/main/java/org/api4/java/ai/ml/loss/classification/singlelabel/IClassificationLossFunction.java
  175. +0 −7 .../api4/java/ai/ml/loss/classification/singlelabel/ISingleLabelClassificationBatchLossFunction.java
  176. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/loss/classification/singlelabel/package-info.java
  177. +0 −8 ai/ml/src/main/java/org/api4/java/ai/ml/loss/ranking/IRankingLossFunction.java
  178. +1 −1 ai/ml/src/main/java/org/api4/java/ai/ml/{dataset/supervised/ranking → ranking/dataset}/IRanking.java
  179. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/dataset/IRankingDataSource.java
  180. +2 −2 ...main/java/org/api4/java/ai/ml/{dataset/supervised/ranking → ranking/dataset}/IRankingDataset.java
  181. +10 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/dataset/IRankingInstance.java
  182. +1 −1 ...main/java/org/api4/java/ai/ml/{dataset/supervised/ranking/dyad → ranking/dyad/dataset}/IDyad.java
  183. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/dyad/dataset/IDyadRankingDataSource.java
  184. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/dyad/dataset/IDyadRankingDataset.java
  185. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/dyad/dataset/IDyadRankingInstance.java
  186. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/dyad/dataset/package-info.java
  187. +10 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/dyad/learner/IDyadRanker.java
  188. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/dyad/learner/package-info.java
  189. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/label/dataset/ILabelRankingDataSource.java
  190. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/label/dataset/ILabelRankingDataset.java
  191. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/label/dataset/ILabelRankingInstance.java
  192. +9 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/label/learner/ILabelRanker.java
  193. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/label/learner/package-info.java
  194. +17 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/learner/IRanker.java
  195. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/loss/IRankingLossFunction.java
  196. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/ranking/package-info.java
  197. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/regression/dataset/IRegressionDataSource.java
  198. +7 −0 ai/ml/src/main/java/org/api4/java/ai/ml/regression/dataset/IRegressionDataset.java
  199. +10 −0 ai/ml/src/main/java/org/api4/java/ai/ml/regression/dataset/IRegressionInstance.java
  200. +9 −0 ai/ml/src/main/java/org/api4/java/ai/ml/regression/learner/IRegressor.java
  201. +8 −0 ai/ml/src/main/java/org/api4/java/ai/ml/regression/package-info.java
  202. +0 −8 common/src/main/java/org/api4/java/common/complexity/package-info.java
  203. +1 −1 common/src/main/java/org/api4/java/common/{complexity → timeseries}/ITimeSeriesComplexity.java
  204. +1 −1 ...java/org/api4/java/ai/ml → common/src/main/java/org/api4/java/common/timeseries}/ITimeseries.java
  205. +8 −0 common/src/main/java/org/api4/java/common/timeseries/package-info.java
@@ -0,0 +1,16 @@
package org.api4.java.ai.ml.classification;

import org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset;
import org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance;
import org.api4.java.ai.ml.core.learner.ISupervisedLearner;

/**
*
* @author mwever
*
* @param <I>
* @param <D>
*/
public interface IClassifier<I extends ILabeledInstance, D extends ILabeledDataset<I>> extends ISupervisedLearner<I, D> {

}
@@ -0,0 +1,7 @@
package org.api4.java.ai.ml.classification.multilabel.dataset;

import org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataSource;

public interface IMultiLabelClassificationDataSource extends ILabeledDataSource<IMultiLabelClassificationInstance> {

}
@@ -1,6 +1,6 @@
package org.api4.java.ai.ml.dataset.supervised.classification.multilabel;
package org.api4.java.ai.ml.classification.multilabel.dataset;

import org.api4.java.ai.ml.dataset.supervised.ILabeledDataset;
import org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset;

public interface IMultiLabelClassificationDataset extends IMultiLabelClassificationDataSource, ILabeledDataset<IMultiLabelClassificationInstance> {

@@ -0,0 +1,10 @@
package org.api4.java.ai.ml.classification.multilabel.dataset;

import org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance;

public interface IMultiLabelClassificationInstance extends ILabeledInstance {

@Override
public IMultiLabelSet getLabel();

}
@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.supervised.classification.multilabel;
package org.api4.java.ai.ml.classification.multilabel.dataset;

import java.util.Map;
import java.util.Set;
@@ -0,0 +1,5 @@
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.classification.multilabel.dataset;
@@ -0,0 +1,9 @@
package org.api4.java.ai.ml.classification.multilabel.learner;

import org.api4.java.ai.ml.classification.IClassifier;
import org.api4.java.ai.ml.classification.multilabel.dataset.IMultiLabelClassificationDataset;
import org.api4.java.ai.ml.classification.multilabel.dataset.IMultiLabelClassificationInstance;

public interface IMultiLabelClassifier extends IClassifier<IMultiLabelClassificationInstance, IMultiLabelClassificationDataset> {

}
@@ -0,0 +1,8 @@
/**
*
*/
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.classification.multilabel.learner;
@@ -0,0 +1,9 @@
package org.api4.java.ai.ml.classification.multilabel.loss;

import java.util.Set;

import org.api4.java.ai.ml.core.evaluation.loss.ILossFunction;

public interface IMultiLabelClassificationLossFunction extends ILossFunction<Set<String>> {

}
@@ -0,0 +1,8 @@
/**
*
*/
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.classification.multilabel.loss;
@@ -0,0 +1,5 @@
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.classification.multilabel;
@@ -0,0 +1,8 @@
/**
*
*/
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.classification;
@@ -0,0 +1,7 @@
package org.api4.java.ai.ml.classification.singlelabel.dataset;

import org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataSource;

public interface ISingleLabelClassificationDataSource extends ILabeledDataSource<ISingleLabelClassificationInstance> {

}
@@ -1,6 +1,6 @@
package org.api4.java.ai.ml.dataset.supervised.classification.singlelabel;
package org.api4.java.ai.ml.classification.singlelabel.dataset;

import org.api4.java.ai.ml.dataset.supervised.ILabeledDataset;
import org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset;

public interface ISingleLabelClassificationDataset extends ILabeledDataset<ISingleLabelClassificationInstance>, ISingleLabelClassificationDataSource {

@@ -0,0 +1,10 @@
package org.api4.java.ai.ml.classification.singlelabel.dataset;

import org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance;

public interface ISingleLabelClassificationInstance extends ILabeledInstance {

@Override
public String getLabel();

}
@@ -0,0 +1,8 @@
/**
*
*/
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.classification.singlelabel.dataset;
@@ -0,0 +1,14 @@
package org.api4.java.ai.ml.classification.singlelabel.learner;

import org.api4.java.ai.ml.classification.IClassifier;
import org.api4.java.ai.ml.classification.singlelabel.dataset.ISingleLabelClassificationDataset;
import org.api4.java.ai.ml.classification.singlelabel.dataset.ISingleLabelClassificationInstance;

/**
*
* @author mwever
*
*/
public interface ISingleLabelClassifier extends IClassifier<ISingleLabelClassificationInstance, ISingleLabelClassificationDataset> {

}
@@ -0,0 +1,8 @@
/**
*
*/
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.classification.singlelabel.learner;
@@ -0,0 +1,7 @@
package org.api4.java.ai.ml.classification.singlelabel.loss;

import org.api4.java.ai.ml.core.evaluation.loss.ILossFunction;

public interface IClassificationLossFunction extends ILossFunction<String> {

}
@@ -0,0 +1,7 @@
package org.api4.java.ai.ml.classification.singlelabel.loss;

import org.api4.java.ai.ml.core.evaluation.loss.IBatchLossFunction;

public interface ISingleLabelClassificationBatchLossFunction extends IBatchLossFunction<String> {

}
@@ -0,0 +1,8 @@
/**
*
*/
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.classification.singlelabel.loss;
@@ -0,0 +1,5 @@
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.classification.singlelabel;
@@ -0,0 +1,9 @@
package org.api4.java.ai.ml.clustering.learner;

import org.api4.java.ai.ml.core.dataset.IDataset;
import org.api4.java.ai.ml.core.dataset.IInstance;
import org.api4.java.ai.ml.core.learner.IUnsupervisedLearner;

public interface IClusterer extends IUnsupervisedLearner<IInstance, IDataset<IInstance>> {

}
@@ -0,0 +1,8 @@
/**
*
*/
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.clustering.learner;
@@ -0,0 +1,8 @@
/**
*
*/
/**
* @author mwever
*
*/
package org.api4.java.ai.ml.clustering;
@@ -1,7 +1,7 @@
package org.api4.java.ai.ml.dataset;
package org.api4.java.ai.ml.core.dataset;

import org.api4.java.ai.ml.dataset.exception.DatasetCreationException;
import org.api4.java.ai.ml.dataset.schema.IInstanceSchemaHandler;
import org.api4.java.ai.ml.core.dataset.schema.IInstanceSchemaHandler;
import org.api4.java.ai.ml.core.exception.DatasetCreationException;

/**
* The general dataset interface.
@@ -1,8 +1,8 @@
package org.api4.java.ai.ml.dataset;
package org.api4.java.ai.ml.core.dataset;

import java.util.List;

import org.api4.java.ai.ml.dataset.exception.DatasetCreationException;
import org.api4.java.ai.ml.core.exception.DatasetCreationException;

public interface IDataset<I extends IInstance> extends IDataSource<I>, List<I> {

@@ -1,6 +1,6 @@
package org.api4.java.ai.ml.dataset;
package org.api4.java.ai.ml.core.dataset;

import org.api4.java.ai.ml.dataset.schema.IInstanceSchemaHandler;
import org.api4.java.ai.ml.core.dataset.schema.IInstanceSchemaHandler;

/**
* Instances implementing this interface have a feature description of the type X.
@@ -0,0 +1,11 @@
package org.api4.java.ai.ml.core.dataset.schema;

import org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute;

public interface IInstanceSchema {

public IAttribute getAttribute(final int pos);

public int getNumAttributes();

}
@@ -1,10 +1,10 @@
package org.api4.java.ai.ml.dataset.schema;
package org.api4.java.ai.ml.core.dataset.schema;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.api4.java.ai.ml.dataset.schema.attribute.IAttribute;
import org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute;

public interface IInstanceSchemaHandler {

@@ -0,0 +1,9 @@
package org.api4.java.ai.ml.core.dataset.schema;

import org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute;

public interface ILabeledInstanceSchema extends IInstanceSchema {

public IAttribute getLabelAttribute();

}
@@ -1,6 +1,6 @@
package org.api4.java.ai.ml.dataset.schema;
package org.api4.java.ai.ml.core.dataset.schema;

import org.api4.java.ai.ml.dataset.schema.attribute.IAttribute;
import org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute;

public interface ILabeledInstanceSchemaHandler extends IInstanceSchemaHandler {

@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

import java.io.Serializable;

@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface IAttributeValue {

@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface IMultiLabelAttribute extends IAttribute {

@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

import java.util.Set;

@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

import java.util.List;

@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface INominalAttributeValue extends IAttributeValue {

@@ -0,0 +1,5 @@
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface INumericAttribute extends IAttribute {

}
@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface INumericAttributeValue extends IAttributeValue {

@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface INumericEncodingAttribute extends IAttribute {

@@ -0,0 +1,5 @@
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface IObjectAttribute<O> extends IAttribute {

}
@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface IObjectAttributeValue<O> extends IAttributeValue {

@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface IOrdinalAttribute extends IAttributeValue {

@@ -1,4 +1,4 @@
package org.api4.java.ai.ml.dataset.schema.attribute;
package org.api4.java.ai.ml.core.dataset.schema.attribute;

public interface IOrdinalAttributeValue extends IAttributeValue {

0 comments on commit 1cb70ae

Please sign in to comment.
You can’t perform that action at this time.