rumale 0.23.2 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +5 -1
  3. data/README.md +3 -288
  4. data/lib/rumale/version.rb +1 -1
  5. data/lib/rumale.rb +20 -131
  6. metadata +253 -151
  7. data/CHANGELOG.md +0 -640
  8. data/CODE_OF_CONDUCT.md +0 -74
  9. data/ext/rumale/extconf.rb +0 -31
  10. data/ext/rumale/rumaleext.c +0 -545
  11. data/ext/rumale/rumaleext.h +0 -12
  12. data/lib/rumale/base/base_estimator.rb +0 -49
  13. data/lib/rumale/base/classifier.rb +0 -36
  14. data/lib/rumale/base/cluster_analyzer.rb +0 -31
  15. data/lib/rumale/base/evaluator.rb +0 -17
  16. data/lib/rumale/base/regressor.rb +0 -36
  17. data/lib/rumale/base/splitter.rb +0 -21
  18. data/lib/rumale/base/transformer.rb +0 -22
  19. data/lib/rumale/clustering/dbscan.rb +0 -123
  20. data/lib/rumale/clustering/gaussian_mixture.rb +0 -218
  21. data/lib/rumale/clustering/hdbscan.rb +0 -291
  22. data/lib/rumale/clustering/k_means.rb +0 -122
  23. data/lib/rumale/clustering/k_medoids.rb +0 -141
  24. data/lib/rumale/clustering/mini_batch_k_means.rb +0 -139
  25. data/lib/rumale/clustering/power_iteration.rb +0 -127
  26. data/lib/rumale/clustering/single_linkage.rb +0 -203
  27. data/lib/rumale/clustering/snn.rb +0 -76
  28. data/lib/rumale/clustering/spectral_clustering.rb +0 -115
  29. data/lib/rumale/dataset.rb +0 -246
  30. data/lib/rumale/decomposition/factor_analysis.rb +0 -150
  31. data/lib/rumale/decomposition/fast_ica.rb +0 -188
  32. data/lib/rumale/decomposition/nmf.rb +0 -124
  33. data/lib/rumale/decomposition/pca.rb +0 -159
  34. data/lib/rumale/ensemble/ada_boost_classifier.rb +0 -179
  35. data/lib/rumale/ensemble/ada_boost_regressor.rb +0 -160
  36. data/lib/rumale/ensemble/extra_trees_classifier.rb +0 -139
  37. data/lib/rumale/ensemble/extra_trees_regressor.rb +0 -125
  38. data/lib/rumale/ensemble/gradient_boosting_classifier.rb +0 -306
  39. data/lib/rumale/ensemble/gradient_boosting_regressor.rb +0 -237
  40. data/lib/rumale/ensemble/random_forest_classifier.rb +0 -189
  41. data/lib/rumale/ensemble/random_forest_regressor.rb +0 -153
  42. data/lib/rumale/ensemble/stacking_classifier.rb +0 -215
  43. data/lib/rumale/ensemble/stacking_regressor.rb +0 -163
  44. data/lib/rumale/ensemble/voting_classifier.rb +0 -126
  45. data/lib/rumale/ensemble/voting_regressor.rb +0 -82
  46. data/lib/rumale/evaluation_measure/accuracy.rb +0 -29
  47. data/lib/rumale/evaluation_measure/adjusted_rand_score.rb +0 -74
  48. data/lib/rumale/evaluation_measure/calinski_harabasz_score.rb +0 -56
  49. data/lib/rumale/evaluation_measure/davies_bouldin_score.rb +0 -53
  50. data/lib/rumale/evaluation_measure/explained_variance_score.rb +0 -39
  51. data/lib/rumale/evaluation_measure/f_score.rb +0 -50
  52. data/lib/rumale/evaluation_measure/function.rb +0 -147
  53. data/lib/rumale/evaluation_measure/log_loss.rb +0 -45
  54. data/lib/rumale/evaluation_measure/mean_absolute_error.rb +0 -29
  55. data/lib/rumale/evaluation_measure/mean_squared_error.rb +0 -29
  56. data/lib/rumale/evaluation_measure/mean_squared_log_error.rb +0 -29
  57. data/lib/rumale/evaluation_measure/median_absolute_error.rb +0 -30
  58. data/lib/rumale/evaluation_measure/mutual_information.rb +0 -49
  59. data/lib/rumale/evaluation_measure/normalized_mutual_information.rb +0 -53
  60. data/lib/rumale/evaluation_measure/precision.rb +0 -50
  61. data/lib/rumale/evaluation_measure/precision_recall.rb +0 -96
  62. data/lib/rumale/evaluation_measure/purity.rb +0 -40
  63. data/lib/rumale/evaluation_measure/r2_score.rb +0 -43
  64. data/lib/rumale/evaluation_measure/recall.rb +0 -50
  65. data/lib/rumale/evaluation_measure/roc_auc.rb +0 -130
  66. data/lib/rumale/evaluation_measure/silhouette_score.rb +0 -82
  67. data/lib/rumale/feature_extraction/feature_hasher.rb +0 -110
  68. data/lib/rumale/feature_extraction/hash_vectorizer.rb +0 -155
  69. data/lib/rumale/feature_extraction/tfidf_transformer.rb +0 -113
  70. data/lib/rumale/kernel_approximation/nystroem.rb +0 -126
  71. data/lib/rumale/kernel_approximation/rbf.rb +0 -102
  72. data/lib/rumale/kernel_machine/kernel_fda.rb +0 -120
  73. data/lib/rumale/kernel_machine/kernel_pca.rb +0 -97
  74. data/lib/rumale/kernel_machine/kernel_ridge.rb +0 -82
  75. data/lib/rumale/kernel_machine/kernel_ridge_classifier.rb +0 -92
  76. data/lib/rumale/kernel_machine/kernel_svc.rb +0 -193
  77. data/lib/rumale/linear_model/base_sgd.rb +0 -285
  78. data/lib/rumale/linear_model/elastic_net.rb +0 -119
  79. data/lib/rumale/linear_model/lasso.rb +0 -115
  80. data/lib/rumale/linear_model/linear_regression.rb +0 -201
  81. data/lib/rumale/linear_model/logistic_regression.rb +0 -275
  82. data/lib/rumale/linear_model/nnls.rb +0 -137
  83. data/lib/rumale/linear_model/ridge.rb +0 -209
  84. data/lib/rumale/linear_model/svc.rb +0 -213
  85. data/lib/rumale/linear_model/svr.rb +0 -132
  86. data/lib/rumale/manifold/mds.rb +0 -155
  87. data/lib/rumale/manifold/tsne.rb +0 -222
  88. data/lib/rumale/metric_learning/fisher_discriminant_analysis.rb +0 -113
  89. data/lib/rumale/metric_learning/mlkr.rb +0 -161
  90. data/lib/rumale/metric_learning/neighbourhood_component_analysis.rb +0 -167
  91. data/lib/rumale/model_selection/cross_validation.rb +0 -125
  92. data/lib/rumale/model_selection/function.rb +0 -42
  93. data/lib/rumale/model_selection/grid_search_cv.rb +0 -225
  94. data/lib/rumale/model_selection/group_k_fold.rb +0 -93
  95. data/lib/rumale/model_selection/group_shuffle_split.rb +0 -115
  96. data/lib/rumale/model_selection/k_fold.rb +0 -81
  97. data/lib/rumale/model_selection/shuffle_split.rb +0 -90
  98. data/lib/rumale/model_selection/stratified_k_fold.rb +0 -99
  99. data/lib/rumale/model_selection/stratified_shuffle_split.rb +0 -118
  100. data/lib/rumale/model_selection/time_series_split.rb +0 -91
  101. data/lib/rumale/multiclass/one_vs_rest_classifier.rb +0 -83
  102. data/lib/rumale/naive_bayes/base_naive_bayes.rb +0 -47
  103. data/lib/rumale/naive_bayes/bernoulli_nb.rb +0 -82
  104. data/lib/rumale/naive_bayes/complement_nb.rb +0 -85
  105. data/lib/rumale/naive_bayes/gaussian_nb.rb +0 -69
  106. data/lib/rumale/naive_bayes/multinomial_nb.rb +0 -74
  107. data/lib/rumale/naive_bayes/negation_nb.rb +0 -71
  108. data/lib/rumale/nearest_neighbors/k_neighbors_classifier.rb +0 -133
  109. data/lib/rumale/nearest_neighbors/k_neighbors_regressor.rb +0 -108
  110. data/lib/rumale/nearest_neighbors/vp_tree.rb +0 -132
  111. data/lib/rumale/neural_network/adam.rb +0 -56
  112. data/lib/rumale/neural_network/base_mlp.rb +0 -248
  113. data/lib/rumale/neural_network/mlp_classifier.rb +0 -120
  114. data/lib/rumale/neural_network/mlp_regressor.rb +0 -90
  115. data/lib/rumale/pairwise_metric.rb +0 -152
  116. data/lib/rumale/pipeline/feature_union.rb +0 -69
  117. data/lib/rumale/pipeline/pipeline.rb +0 -175
  118. data/lib/rumale/preprocessing/bin_discretizer.rb +0 -93
  119. data/lib/rumale/preprocessing/binarizer.rb +0 -60
  120. data/lib/rumale/preprocessing/kernel_calculator.rb +0 -92
  121. data/lib/rumale/preprocessing/l1_normalizer.rb +0 -62
  122. data/lib/rumale/preprocessing/l2_normalizer.rb +0 -63
  123. data/lib/rumale/preprocessing/label_binarizer.rb +0 -89
  124. data/lib/rumale/preprocessing/label_encoder.rb +0 -79
  125. data/lib/rumale/preprocessing/max_abs_scaler.rb +0 -61
  126. data/lib/rumale/preprocessing/max_normalizer.rb +0 -62
  127. data/lib/rumale/preprocessing/min_max_scaler.rb +0 -76
  128. data/lib/rumale/preprocessing/one_hot_encoder.rb +0 -100
  129. data/lib/rumale/preprocessing/ordinal_encoder.rb +0 -109
  130. data/lib/rumale/preprocessing/polynomial_features.rb +0 -109
  131. data/lib/rumale/preprocessing/standard_scaler.rb +0 -71
  132. data/lib/rumale/probabilistic_output.rb +0 -114
  133. data/lib/rumale/tree/base_decision_tree.rb +0 -150
  134. data/lib/rumale/tree/decision_tree_classifier.rb +0 -150
  135. data/lib/rumale/tree/decision_tree_regressor.rb +0 -116
  136. data/lib/rumale/tree/extra_tree_classifier.rb +0 -107
  137. data/lib/rumale/tree/extra_tree_regressor.rb +0 -94
  138. data/lib/rumale/tree/gradient_tree_regressor.rb +0 -202
  139. data/lib/rumale/tree/node.rb +0 -39
  140. data/lib/rumale/utils.rb +0 -42
  141. data/lib/rumale/validation.rb +0 -128
  142. data/lib/rumale/values.rb +0 -13
data/CHANGELOG.md DELETED
@@ -1,640 +0,0 @@
1
- # 0.23.2
2
- Rumale project will be rebooted on version 0.24.0.
3
- This version is probably the last release of the series starting with version 0.8.0.
4
-
5
- - Refactor some codes and configs.
6
- - Deprecate VPTree class.
7
-
8
- # 0.23.1
9
- - Fix all estimators to return inference results in a contiguous narray.
10
- - Fix to use until statement instead of recursive call on apply methods of tree estimators.
11
- - Rename native extension files.
12
- - Introduce clang-format for native extension codes.
13
-
14
- # 0.23.0
15
- ## Breaking change
16
- - Change automalically selected solver from sgd to lbfgs in
17
- [LinearRegression](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/LinearRegression.html) and
18
- [Ridge](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/Ridge.html).
19
- - When given 'auto' to solver parameter, these estimator select the 'svd' solver if Numo::Linalg is loaded.
20
- Otherwise, they select the 'lbfgs' solver.
21
-
22
- # 0.22.5
23
- - Add transformer class for calculating kernel matrix.
24
- - [KernelCalculator](https://yoshoku.github.io/rumale/doc/Rumale/Preprocessing/KernelCalculator.html)
25
- - Add classifier class based on Ridge regression.
26
- - [KernelRidgeClassifier](https://yoshoku.github.io/rumale/doc/Rumale/KernelMachine/KernelRidgeClassifier.html)
27
- - Add supported kernel functions to [Nystroem](https://yoshoku.github.io/rumale/doc/Rumale/KernelApproximation/Nystroem.html).
28
- - Add parameter for specifying the number of features to [load_libsvm_file](https://yoshoku.github.io/rumale/doc/Rumale/Dataset.html#load_libsvm_file-class_method).
29
-
30
- # 0.22.4
31
- - Add classifier and regressor classes for voting ensemble method.
32
- - [VotingClassifier](https://yoshoku.github.io/rumale/doc/Rumale/Ensemble/VotingClassifier.html)
33
- - [VotingRegressor](https://yoshoku.github.io/rumale/doc/Rumale/Ensemble/VotingRegressor.html)
34
- - Refactor some codes.
35
- - Fix some typos on API documentation.
36
-
37
- # 0.22.3
38
- - Add regressor class for non-negative least square method.
39
- - [NNLS](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/NNLS.html)
40
- - Add lbfgs solver to [Ridge](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/Ridge.html) and [LinearRegression](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/LinearRegression.html).
41
- - In version 0.23.0, these classes will be changed to attempt to optimize with 'svd' or 'lbfgs' solver if 'auto' is given to
42
- the solver parameter. If you use 'sgd' solver, you need specify it explicitly.
43
- - Add GC guard to native extension codes.
44
- - Update API documentation.
45
-
46
- # 0.22.2
47
- - Add classifier and regressor classes for stacking method.
48
- - [StackingClassifier](https://yoshoku.github.io/rumale/doc/Rumale/Ensemble/StackingClassifier.html)
49
- - [StackingRegressor](https://yoshoku.github.io/rumale/doc/Rumale/Ensemble/StackingRegressor.html)
50
- - Refactor some codes with Rubocop.
51
-
52
- # 0.22.1
53
- - Add transfomer class for [MLKR](https://yoshoku.github.io/rumale/doc/Rumale/MetricLearning/MLKR.html), that implements Metric Learning for Kernel Regression.
54
- - Refactor NeighbourhoodComponentAnalysis.
55
- - Update API documentation.
56
-
57
- # 0.22.0
58
- ## Breaking change
59
- - Add lbfgsb.rb gem to runtime dependencies. Rumale uses lbfgsb gem for optimization.
60
- This eliminates the need to require the mopti gem when using [NeighbourhoodComponentAnalysis](https://yoshoku.github.io/rumale/doc/Rumale/MetricLearning/NeighbourhoodComponentAnalysis.html).
61
- - Add lbfgs solver to [LogisticRegression](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/LogisticRegression.html) and make it the default solver.
62
-
63
- # 0.21.0
64
- ## Breaking change
65
- - Change the default value of max_iter argument on LinearModel estimators to 1000.
66
-
67
- # 0.20.3
68
- - Fix to use automatic solver of PCA in NeighbourhoodComponentAnalysis.
69
- - Refactor some codes with Rubocop.
70
- - Update README.
71
-
72
- # 0.20.2
73
- - Add cross-validator class for time-series data.
74
- - [TimeSeriesSplit](https://yoshoku.github.io/rumale/doc/Rumale/ModelSelection/TimeSeriesSplit.html)
75
-
76
- # 0.20.1
77
- - Add cross-validator classes that split data according group labels.
78
- - [GroupKFold](https://yoshoku.github.io/rumale/doc/Rumale/ModelSelection/GroupKFold.html)
79
- - [GroupShuffleSplit](https://yoshoku.github.io/rumale/doc/Rumale/ModelSelection/GroupShuffleSplit.html)
80
- - Fix fraction treating of the number of samples on shuffle split cross-validator classes.
81
- - [ShuffleSplit](https://yoshoku.github.io/rumale/doc/Rumale/ModelSelection/ShuffleSplit.html)
82
- - [StratifiedShuffleSplit](https://yoshoku.github.io/rumale/doc/Rumale/ModelSelection/StratifiedShuffleSplit.html)
83
- - Refactor some codes with Rubocop.
84
-
85
- # 0.20.0
86
- ## Breaking changes
87
- - Delete deprecated estimators such as PolynomialModel, Optimizer, and BaseLinearModel.
88
-
89
- # 0.19.3
90
- - Add preprocessing class for [Binarizer](https://yoshoku.github.io/rumale/doc/Rumale/Preprocessing/Binarizer.html)
91
- - Add preprocessing class for [MaxNormalizer](https://yoshoku.github.io/rumale/doc/Rumale/Preprocessing/MaxNormalizer.html)
92
- - Refactor some codes with Rubocop.
93
-
94
- # 0.19.2
95
- - Fix L2Normalizer to avoid zero divide.
96
- - Add preprocssing class for [L1Normalizer](https://yoshoku.github.io/rumale/doc/Rumale/Preprocessing/L1Normalizer.html).
97
- - Add transformer class for [TfidfTransformer](https://yoshoku.github.io/rumale/doc/Rumale/FeatureExtraction/TfidfTransformer.html).
98
-
99
- # 0.19.1
100
- - Add cluster analysis class for [mini-batch K-Means](https://yoshoku.github.io/rumale/doc/Rumale/Clustering/MiniBatchKMeans.html).
101
- - Fix some typos.
102
-
103
- # 0.19.0
104
- ## Breaking changes
105
- - Change mmh3 and mopti gem to non-runtime dependent library.
106
- - The mmh3 gem is used in [FeatureHasher](https://yoshoku.github.io/rumale/doc/Rumale/FeatureExtraction/FeatureHasher.html).
107
- You only need to require mmh3 gem when using FeatureHasher.
108
- ```ruby
109
- require 'mmh3'
110
- require 'rumale'
111
-
112
- encoder = Rumale::FeatureExtraction::FeatureHasher.new
113
- ```
114
- - The mopti gem is used in [NeighbourhoodComponentAnalysis](https://yoshoku.github.io/rumale/doc/Rumale/MetricLearning/NeighbourhoodComponentAnalysis.html).
115
- You only need to require mopti gem when using NeighbourhoodComponentAnalysis.
116
- ```ruby
117
- require 'mopti'
118
- require 'rumale'
119
-
120
- transformer = Rumale::MetricLearning::NeighbourhoodComponentAnalysis.new
121
- ```
122
- - Change the default value of solver parameter on [PCA](https://yoshoku.github.io/rumale/doc/Rumale/Decomposition/PCA.html) to 'auto'.
123
- If Numo::Linalg is loaded, 'evd' is selected for the solver, otherwise 'fpt' is selected.
124
- - Deprecate [PolynomialModel](https://yoshoku.github.io/rumale/doc/Rumale/PolynomialModel.html), [Optimizer](https://yoshoku.github.io/rumale/doc/Rumale/Optimizer.html), and the estimators contained in them. They will be deleted in version 0.20.0.
125
- - Many machine learning libraries do not contain factorization machine algorithms, they are provided by another compatible library.
126
- In addition, there are no plans to implement estimators in PolynomialModel.
127
- Thus, the author decided to deprecate PolynomialModel.
128
- - Currently, the Optimizer classes are only used by PolynomialModel estimators.
129
- Therefore, they have been deprecated together with PolynomialModel.
130
-
131
- # 0.18.7
132
- - Fix to convert target_name to string array in [classification_report method](https://yoshoku.github.io/rumale/doc/Rumale/EvaluationMeasure.html#classification_report-class_method).
133
- - Refactor some codes with Rubocop.
134
-
135
- # 0.18.6
136
- - Fix some configuration files.
137
- - Update API documentation.
138
-
139
- # 0.18.5
140
- - Add functions for calculation of cosine similarity and distance to [Rumale::PairwiseMetric](https://yoshoku.github.io/rumale/doc/Rumale/PairwiseMetric.html).
141
- - Refactor some codes with Rubocop.
142
-
143
- # 0.18.4
144
- - Add transformer class for [KernelFDA](https://yoshoku.github.io/rumale/doc/Rumale/KernelMachine/KernelFDA.html).
145
- - Refactor [KernelPCA](https://yoshoku.github.io/rumale/doc/Rumale/KernelMachine/KernelPCA.html).
146
- - Fix API documentation.
147
-
148
- # 0.18.3
149
- - Fix API documentation on [KNeighborsRegressor](https://yoshoku.github.io/rumale/doc/Rumale/NearestNeighbors/KNeighborsRegressor.html)
150
- - Refector [rbf_kernel](https://yoshoku.github.io/rumale/doc/Rumale/PairwiseMetric.html#rbf_kernel-class_method) method.
151
- - Delete unneeded marshal dump and load methods. The deletion work is complete.
152
- - [Tree](https://yoshoku.github.io/rumale/doc/Rumale/Tree.html),
153
- [Ensemble](https://yoshoku.github.io/rumale/doc/Rumale/Ensemble.html),
154
- [Optimizer](https://yoshoku.github.io/rumale/doc/Rumale/Optimizer.html),
155
- [OneVsRestClassifier](https://yoshoku.github.io/rumale/doc/Rumale/Multiclass/OneVsRestClassifier.html),
156
- [GridSearchCV](https://yoshoku.github.io/rumale/doc/Rumale/ModelSelection/GridSearchCV.html).
157
-
158
- # 0.18.2
159
- - Change file composition of naive bayes classifiers.
160
- - Add classifier class for [ComplementNaiveBayes](https://yoshoku.github.io/rumale/doc/Rumale/NaiveBayes/ComplementNB.html).
161
- - Add classifier class for [NegationNaiveBayes](https://yoshoku.github.io/rumale/doc/Rumale/NaiveBayes/NegationNB.html).
162
- - Add [module function](https://yoshoku.github.io/rumale/doc/Rumale/EvaluationMeasure.html#confusion_matrix-class_method) for calculating confusion matrix.
163
- - Delete unneeded marshal dump and load methods.
164
- - [Clustering](https://yoshoku.github.io/rumale/doc/Rumale/Clustering.html),
165
- [KernelApproximation](https://yoshoku.github.io/rumale/doc/Rumale/KernelApproximation.html),
166
- [KernelMachine](https://yoshoku.github.io/rumale/doc/Rumale/KernelMachine.html),
167
- [NearestNeighbors](https://yoshoku.github.io/rumale/doc/Rumale/NearestNeighbors.html),
168
- [Preprocessing](https://yoshoku.github.io/rumale/doc/Rumale/Preprocessing.html).
169
-
170
- # 0.18.1
171
- - Add [module function](https://yoshoku.github.io/rumale/doc/Rumale/EvaluationMeasure.html#classification_report-class_method) for generating summary of classification performance.
172
- - Delete marshal dump and load methods for documentation.
173
- The marshal methods are written in estimator classes for indicating on API documentation that the learned model can be saved with Marshal.
174
- Even without these methods, Marshal can save the learned model, so they are deleted sequentially.
175
- - [Manifold](https://yoshoku.github.io/rumale/doc/Rumale/Manifold.html),
176
- [NaiveBayes](https://yoshoku.github.io/rumale/doc/Rumale/NaiveBayes.html),
177
- [PolynomialModel](https://yoshoku.github.io/rumale/doc/Rumale/PolynomialModel.html),
178
- [Decomposition](https://yoshoku.github.io/doc/Rumale/Decomposition.html).
179
-
180
- # 0.18.0
181
- - Add transformer class for [FisherDiscriminantAnalysis](https://yoshoku.github.io/rumale/doc/Rumale/MetricLearning/FisherDiscriminantAnalysis.html).
182
- - Add transformer class for [NeighbourhoodComponentAnalysis](https://yoshoku.github.io/rumale/doc/Rumale/MetricLearning/NeighbourhoodComponentAnalysis.html).
183
- - Add [module function](https://yoshoku.github.io/rumale/doc/Rumale/ModelSelection.html#train_test_split-class_method) for hold-out validation.
184
-
185
- # 0.17.3
186
- - Add pipeline class for [FeatureUnion](https://yoshoku.github.io/rumale/doc/Rumale/Pipeline/FeatureUnion.html).
187
- - Fix to use mmh3 gem for generating hash value on [FeatureHasher](https://yoshoku.github.io/rumale/doc/Rumale/FeatureExtraction/FeatureHasher.html).
188
-
189
- # 0.17.2
190
- - Add transformer class for kernel approximation with [Nystroem](https://yoshoku.github.io/rumale/doc/Rumale/KernelApproximation/Nystroem.html) method.
191
- - Delete array validation on [Pipeline](https://yoshoku.github.io/rumale/doc/Rumale/Pipeline/Pipeline.html) class considering that array of hash is given to HashVectorizer.
192
-
193
- # 0.17.1
194
- - Add transformer class for [PolynomialFeatures](https://yoshoku.github.io/rumale/doc/Rumale/Preprocessing/PolynomialFeatures.html)
195
- - Add verbose and tol parameter to [FactorizationMachineClassifier](https://yoshoku.github.io/rumale/doc/Rumale/PolynomialModel/FactorizationMachineClassifier.html)
196
- and [FactorizationMachineRegressor](https://yoshoku.github.io/rumale/doc/Rumale/PolynomialModel/FactorizationMachineRegressor.html)
197
- - Fix bug that factor elements of Factorization Machines estimators are not learned caused by initializing factors to zero.
198
-
199
- # 0.17.0
200
- ## Breaking changes
201
- - Fix all linear model estimators to use the new abstract class ([BaseSGD](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/BaseSGD.html)) introduced in version 0.16.1.
202
- The major differences from the old abstract class are that
203
- the optimizer of LinearModel estimators is fixed to mini-batch SGD with momentum term,
204
- the max_iter parameter indicates the number of epochs instead of the maximum number of iterations,
205
- the fit_bias parameter is true by default, and elastic-net style regularization can be used.
206
- Note that there are additions and changes to hyperparameters.
207
- Existing trained linear models may need to re-train the model and adjust the hyperparameters.
208
- - [LogisticRegression](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/LogisticRegression.html)
209
- - [SVC](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/SVC.html)
210
- - [LinearRegression](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/LinearRegression.html)
211
- - [Rdige](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/Ridge.html)
212
- - [Lasso](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/Lasso.html)
213
- - [SVR](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/SVR.html)
214
- - Change the default value of solver parameter on LinearRegression and Ridge to 'auto'.
215
- If Numo::Linalg is loaded, 'svd' is selected for the solver, otherwise 'sgd' is selected.
216
- - The meaning of the `max_iter` parameter of the factorization machine estimators
217
- has been changed from the maximum number of iterations to the number of epochs.
218
- - [FactorizationMachineClassifier](https://yoshoku.github.io/rumale/doc/Rumale/PolynomialModel/FactorizationMachineClassifier.html)
219
- - [FactorizationMachineRegressor](https://yoshoku.github.io/rumale/doc/Rumale/PolynomialModel/FactorizationMachineRegressor.html)
220
-
221
- # 0.16.1
222
- - Add regressor class for [ElasticNet](https://yoshoku.github.io/rumale/doc/Rumale/LinearModel/ElasticNet.html).
223
- - Add new linear model abstract class.
224
- - In version 0.17.0, all LinearModel estimators will be changed to use this new abstract class.
225
- The major differences from the existing abstract class are that
226
- the optimizer of LinearModel estimators is fixed to mini-batch SGD with momentum term,
227
- the max_iter parameter indicates the number of epochs instead of the maximum number of iterations,
228
- the fit_bias parameter is true by default, and elastic-net style regularization can be used.
229
-
230
- # 0.16.0
231
- ## Breaking changes
232
- - The meaning of the `max_iter` parameter of the multi-layer perceptron estimators
233
- has been changed from the maximum number of iterations to the number of epochs.
234
- The number of epochs is how many times the whole data is given to the training process.
235
- As a future plan, similar changes will be applied to other estimators used stochastic gradient descent such as SVC and Lasso.
236
- - [MLPClassifier](https://yoshoku.github.io/rumale/doc/Rumale/NeuralNetwork/MLPClassifier.html)
237
- - [MLPRegressor](https://yoshoku.github.io/rumale/doc/Rumale/NeuralNetwork/MLPRegressor.html)
238
-
239
- # 0.15.0
240
- - Add feature extractor classes:
241
- - [HashVectorizer](https://yoshoku.github.io/rumale/doc/Rumale/FeatureExtraction/HashVectorizer.html)
242
- - [FeatureHasher](https://yoshoku.github.io/rumale/doc/Rumale/FeatureExtraction/FeatureHasher.html)
243
-
244
- # 0.14.5
245
- - Fix to suppress deprecation warning about keyword argument in Ruby 2.7.
246
-
247
- # 0.14.4
248
- - Add metric parameter that specifies distance metric to
249
- [KNeighborsClassifier](https://yoshoku.github.io/rumale/doc/Rumale/NearestNeighbors/KNeighborsClassifier.html) and
250
- [KNeighborsRegressor](https://yoshoku.github.io/rumale/doc/Rumale/NearestNeighbors/KNeighborsRegressor.html).
251
- - Add algorithm parameter that specifies nearest neighbor search algorithm to
252
- [KNeighborsClassifier](https://yoshoku.github.io/rumale/doc/Rumale/NearestNeighbors/KNeighborsClassifier.html) and
253
- [KNeighborsRegressor](https://yoshoku.github.io/rumale/doc/Rumale/NearestNeighbors/KNeighborsRegressor.html).
254
- - Add nearest neighbor search class with [vantage point tree](https://yoshoku.github.io/rumale/doc/Rumale/NearestNeighbors/VPTree.html).
255
-
256
- # 0.14.3
257
- - Fix documents of GradientBoosting, RandomForest, and ExtraTrees.
258
- - Refactor gaussian mixture clustering with Rubocop.
259
- - Refactor specs.
260
-
261
- # 0.14.2
262
- - Refactor extension codes of decision tree estimators.
263
- - Refactor specs.
264
-
265
- # 0.14.1
266
- - Fix bug where MDS optimization is not performed when tol paremeter is given.
267
- - Refactor specs.
268
-
269
- # 0.14.0
270
- - Add classifier and regressor class with multi-layer perceptron.
271
- - [MLPClassifier](https://yoshoku.github.io/rumale/doc/Rumale/NeuralNetwork/MLPClassifier.html)
272
- - [MLPRegressor](https://yoshoku.github.io/rumale/doc/Rumale/NeuralNetwork/MLPRegressor.html)
273
- - Refactor specs.
274
-
275
- ## Breaking changes
276
- - Change predict method of SVC, LogisticRegression, and FactorizationMachineClassifier classes to return the original label instead of -1 or 1 labels when binary classification problem.
277
- - Fix hyperparameter validation to check if the type of given value is Numeric type.
278
- - Fix array validation for samples, labels, and target values to accept Ruby Array.
279
-
280
- ```ruby
281
- require 'rumale'
282
-
283
- samples = [[-1, 1], [1, 1], [1, -1], [-1, -1]]
284
- labels = [0, 1, 1, 0]
285
-
286
- svc = Rumale::LinearModel::SVC.new(reg_param: 1, batch_size: 1, random_seed: 1)
287
- svc.fit(samples, labels)
288
- svc.predict([[-1, 0], [1, 0]])
289
- # => Numo::Int32#shape=[2]
290
- # [0, 1]
291
- ```
292
-
293
- # 0.13.8
294
- - Add [module function](https://yoshoku.github.io/rumale/doc/Rumale/Dataset.html#make_blobs-class_method) for generating artificial dataset with gaussian blobs.
295
- - Add documents about Rumale::SVM.
296
- - Refactor specs.
297
-
298
- # 0.13.7
299
- - Add some evaluator classes for clustering.
300
- - [SilhouetteScore](https://yoshoku.github.io/rumale/doc/Rumale/EvaluationMeasure/SilhouetteScore.html)
301
- - [CalinskiHarabaszScore](https://yoshoku.github.io/rumale/doc/Rumale/EvaluationMeasure/CalinskiHarabaszScore.html)
302
- - [DaviesBouldinScore](https://yoshoku.github.io/rumale/doc/Rumale/EvaluationMeasure/DaviesBouldinScore.html)
303
-
304
- # 0.13.6
305
- - Add transformer class for [FastICA](https://yoshoku.github.io/rumale/doc/Rumale/Decomposition/FastICA.html).
306
- - Fix a typo on README ([#13](https://github.com/yoshoku/rumale/pull/13)).
307
-
308
- # 0.13.5
309
- - Add transformer class for [Factor Analysis](https://yoshoku.github.io/rumale/doc/Rumale/Decomposition/FactorAnalysis.html).
310
- - Add covariance_type parameter to [Rumale::Clustering::GaussianMixture](https://yoshoku.github.io/rumale/doc/Rumale/Clustering/GaussianMixture.html).
311
-
312
- # 0.13.4
313
- - Add cluster analysis class for [HDBSCAN](https://yoshoku.github.io/rumale/doc/Rumale/Clustering/HDBSCAN.html).
314
- - Add cluster analysis class for [spectral clustering](https://yoshoku.github.io/rumale/doc/Rumale/Clustering/SpectralClustering.html).
315
- - Refactor power iteration clustering.
316
- - Several documentation improvements.
317
-
318
- # 0.13.3
319
- - Add transformer class for [Kernel PCA](https://yoshoku.github.io/rumale/doc/Rumale/KernelMachine/KernelPCA.html).
320
- - Add regressor class for [Kernel Ridge](https://yoshoku.github.io/rumale/doc/Rumale/KernelMachine/KernelRidge.html).
321
-
322
- # 0.13.2
323
- - Add preprocessing class for label binarization.
324
- - Fix to use LabelBinarizer instead of OneHotEncoder.
325
- - Fix bug that OneHotEncoder leaves elements related to values that do not occur in training data.
326
-
327
- # 0.13.1
328
- - Add class for Shared Neareset Neighbor clustering.
329
- - Add function for calculation of manhattan distance to Rumale::PairwiseMetric.
330
- - Add metric parameter that specifies distance metric to Rumale::Clustering::DBSCAN.
331
- - Add the solver parameter that specifies the optimization algorithm to Rumale::LinearModel::LinearRegression.
332
- - Add the solver parameter that specifies the optimization algorithm to Rumale::LinearModel::Ridge.
333
- - Fix bug that the ndim of NArray of 1-dimensional principal components is not 1.
334
-
335
- # 0.13.0
336
- - Introduce [Numo::Linalg](https://github.com/ruby-numo/numo-linalg) to use linear algebra algorithms on the optimization.
337
- - Add the solver parameter that specifies the optimization algorithm to Rumale::Decomposition::PCA.
338
-
339
- ```ruby
340
- require 'rumale'
341
-
342
- # Loading Numo::Linalg enables features based on linear algebra algorithms.
343
- require 'numo/linalg/autoloader'
344
-
345
- decomposer = Rumale::Decomposition::PCA.new(n_components: 2, solver: 'evd')
346
- low_dimensional_samples = decomposer.fit_transform(samples)
347
- ```
348
-
349
- # 0.12.9
350
- - Add class for K-Medoids clustering.
351
- - Fix extension codes of decision tree regressor for using Numo::NArray.
352
-
353
- # 0.12.8
354
- - Fix bug that fails to build and install on Windows again. Fix extconf to add Numo::NArray libraries to $lib.
355
-
356
- # 0.12.7
357
- - Fix bug that fails to build and install on Windows. Add search for Numo::NArray static library path to extconf.
358
-
359
- # 0.12.6
360
- - Fix extension codes of decision tree classifier and gradient tree regressor for using Numo::NArray.
361
-
362
- # 0.12.5
363
- - Fix random number generator initialization on gradient boosting estimators
364
- to obtain the same result with and without parallel option.
365
-
366
- # 0.12.4
367
- - Add class for multidimensional scaling.
368
- - Fix parameter description on artificial dataset generation method.
369
-
370
- # 0.12.3
371
- - Add class for Power Iteration clustering.
372
- - Add classes for artificial dataset generation.
373
-
374
- # 0.12.2
375
- - Add class for cluster analysis with Gaussian Mixture Model.
376
- - Add encoder class for categorical features.
377
-
378
- # 0.12.1
379
- - Refactor kernel support vector classifier.
380
- - Refactor random sampling on tree estimators.
381
-
382
- # 0.12.0
383
- ## Breaking changes
384
- - For reproductivity, Rumale changes to not repeatedly use the same random number generator in the same estimator.
385
- In the training phase, estimators use a copy of the random number generator created in the initialize method.
386
- Even with the same algorithm and the same data, the order of random number generation
387
- may make slight differences in learning results.
388
- By this change, even if the fit method is executed multiple times,
389
- the same learning result can be obtained if the same data is given.
390
-
391
- ```ruby
392
- svc = Rumale::LinearModel::SVC.new(random_seed: 0)
393
- svc.fit(x, y)
394
- a = svc.weight_vec
395
- svc.fit(x, y)
396
- b = svc.weight_vec
397
- err = ((a - b)**2).mean
398
-
399
- # In version 0.11.0 or earlier, false may be output,
400
- # but from this version, true is always output.
401
- puts(err < 1e-4)
402
- ```
403
-
404
- # 0.11.0
405
- - Introduce [Parallel gem](https://github.com/grosser/parallel) to improve execution speed for one-vs-the-rest and bagging methods.
406
- - Add the n_jobs parameter that specifies the number of jobs for parallel processing in some estimators belong to the Rumale::LinearModel, Rumale::PolynomialModel, and Rumale::Ensemble.
407
- - The n_jobs parameter is valid only when parallel gem is loaded.
408
-
409
- ```ruby
410
- require 'rumale'
411
- require 'parallel'
412
-
413
- svc = Rumale::LinearModel::SVC.new(n_jobs: -1)
414
- ```
415
-
416
- # 0.10.0
417
- - Add class for t-distributed Stochastic Neighborhood Embedding.
418
- - Fix bug of zero division on min-max scaling class.
419
-
420
- # 0.9.2
421
- - Add class for Gradient tree boosting classifier.
422
- - Add class for Gradient tree boosting regressor.
423
- - Add class for discretizing feature values.
424
- - Refactor extra-trees estimators.
425
- - Refactor decision tree base class.
426
- - Fix some typos on document ([#6](https://github.com/yoshoku/rumale/pull/6)).
427
-
428
- # 0.9.1
429
- - Add class for Extra-Trees classifier.
430
- - Add class for Extra-Trees regressor.
431
- - Refactor extension modules of decision tree estimators for improving performance.
432
-
433
- # 0.9.0
434
- ## Breaking changes
435
- - Decide to introduce Ruby extensions for improving performance.
436
- - Fix to find split point on decision tree estimators using extension modules.
437
-
438
- # 0.8.4
439
- - Remove unused parameter on Nadam.
440
- - Fix condition to stop growing tree about decision tree.
441
-
442
- # 0.8.3
443
- - Add optimizer class for AdaGrad.
444
- - Add evaluator class for ROC AUC.
445
- - Add class for scaling with maximum absolute value.
446
-
447
- # 0.8.2
448
- - Add class for Adam optimizer.
449
- - Add data splitter classes for random permutation cross validation.
450
- - Add accessor method for number of splits to K-fold splitter classes.
451
- - Add execution result of example script on README ([#3](https://github.com/yoshoku/rumale/pull/3)).
452
-
453
- # 0.8.1
454
- - Add some evaluator classes.
455
- - MeanSquaredLogError
456
- - MedianAbsoluteError
457
- - ExplainedVarianceScore
458
- - AdjustedRandScore
459
- - MutualInformation
460
- - Refactor normalized mutual infomation evaluator.
461
- - Fix typo on document ([#2](https://github.com/yoshoku/rumale/pull/2)).
462
-
463
- # 0.8.0
464
- ## Breaking changes
465
- - Rename SVMKit to Rumale.
466
- - Rename SGDLienareEstimator class to BaseLienarModel class.
467
- - Add data type option to load_libsvm_file method. By default, the method represents the feature with Numo::DFloat.
468
-
469
- ## Refactoring
470
- - Refactor factorization machine estimators.
471
- - Refactor decision tree estimators.
472
-
473
- # 0.7.3
474
- - Add class for grid search performing hyperparameter optimization.
475
- - Add argument validations to Pipeline.
476
-
477
- # 0.7.2
478
- - Add class for Pipeline that constructs chain of transformers and estimators.
479
- - Fix some typos on document ([#1](https://github.com/yoshoku/SVMKit/pull/1)).
480
-
481
- # 0.7.1
482
- - Fix to use CSV class in parsing libsvm format file.
483
- - Refactor ensemble estimators.
484
-
485
- # 0.7.0
486
- - Add class for AdaBoost classifier.
487
- - Add class for AdaBoost regressor.
488
-
489
- # 0.6.3
490
- - Fix bug on setting random seed and max_features parameter of Random Forest estimators.
491
-
492
- # 0.6.2
493
- - Refactor decision tree classes for improving performance.
494
-
495
- # 0.6.1
496
- - Add abstract class for linear estimator with stochastic gradient descent.
497
- - Refactor linear estimators to use linear esitmator abstract class.
498
- - Refactor decision tree classes to avoid unneeded type conversion.
499
-
500
- # 0.6.0
501
- - Add class for Principal Component Analysis.
502
- - Add class for Non-negative Matrix Factorization.
503
-
504
- # 0.5.2
505
- - Add class for DBSCAN clustering.
506
-
507
- # 0.5.1
508
- - Fix bug on class probability calculation of DecisionTreeClassifier.
509
-
510
- # 0.5.0
511
- - Add class for K-Means clustering.
512
- - Add class for evaluating purity.
513
- - Add class for evaluating normalized mutual information.
514
-
515
- # 0.4.1
516
- - Add class for linear regressor.
517
- - Add class for SGD optimizer.
518
- - Add class for RMSProp optimizer.
519
- - Add class for YellowFin optimizer.
520
- - Fix to be able to select optimizer on estimators of LineaModel and PolynomialModel.
521
-
522
- # 0.4.0
523
- ## Breaking changes
524
-
525
- SVMKit introduces optimizer algorithm that calculates learning rates adaptively
526
- on each iteration of stochastic gradient descent (SGD).
527
- While Pegasos SGD runs fast, it sometimes fails to optimize complicated models
528
- like Factorization Machine.
529
- To solve this problem, in version 0.3.3, SVMKit introduced optimization with RMSProp on
530
- FactorizationMachineRegressor, Ridge and Lasso.
531
- This attempt realized stable optimization of those estimators.
532
- Following the success of the attempt, author decided to use modern optimizer algorithms
533
- with all SGD optimizations in SVMKit.
534
- Through some preliminary experiments, author implemented Nadam as the default optimizer.
535
- SVMKit plans to add other optimizer algorithms sequentially, so that users can select them.
536
-
537
- - Fix to use Nadam for optimization on SVC, SVR, LogisticRegression, Ridge, Lasso, and Factorization Machine estimators.
538
- - Combine reg_param_weight and reg_param_bias parameters on Factorization Machine estimators into the unified parameter named reg_param_linear.
539
- - Remove init_std paramter on Factorization Machine estimators.
540
- - Remove learning_rate, decay, and momentum parameters on Ridge, Lasso, and FactorizationMachineRegressor.
541
- - Remove normalize parameter on SVC, SVR, and LogisticRegression.
542
-
543
- # 0.3.3
544
- - Add class for Ridge regressor.
545
- - Add class for Lasso regressor.
546
- - Fix bug on gradient calculation of FactorizationMachineRegressor.
547
- - Fix some documents.
548
-
549
- # 0.3.2
550
- - Add class for Factorization Machine regressor.
551
- - Add class for Decision Tree regressor.
552
- - Add class for Random Forest regressor.
553
- - Fix to support loading and dumping libsvm file with multi-target variables.
554
- - Fix to require DecisionTreeClassifier on RandomForestClassifier.
555
- - Fix some mistakes on document.
556
-
557
- # 0.3.1
558
- - Fix bug on decision function calculation of FactorizationMachineClassifier.
559
- - Fix bug on weight updating process of KernelSVC.
560
-
561
- # 0.3.0
562
- - Add class for Support Vector Regression.
563
- - Add class for K-Nearest Neighbor Regression.
564
- - Add class for evaluating coefficient of determination.
565
- - Add class for evaluating mean squared error.
566
- - Add class for evaluating mean absolute error.
567
- - Fix to use min method instead of sort and first methods.
568
- - Fix cross validation class to be able to use for regression problem.
569
- - Fix some typos on document.
570
- - Rename spec filename for Factorization Machine classifier.
571
-
572
- # 0.2.9
573
- - Add predict_proba method to SVC and KernelSVC.
574
- - Add class for evaluating logarithmic loss.
575
- - Add classes for Label- and One-Hot- encoding.
576
- - Add some validator.
577
- - Fix bug on training data score calculation of cross validation.
578
- - Fix fit method of SVC for performance.
579
- - Fix criterion calculation on Decision Tree for performance.
580
- - Fix data structure of Decision Tree for performance.
581
-
582
- # 0.2.8
583
- - Fix bug on gradient calculation of Logistic Regression.
584
- - Fix to change accessor of params of estimators to read only.
585
- - Add parameter validation.
586
-
587
- # 0.2.7
588
- - Fix to support multiclass classifiction into LinearSVC, LogisticRegression, KernelSVC, and FactorizationMachineClassifier
589
-
590
- # 0.2.6
591
- - Add class for Decision Tree classifier.
592
- - Add class for Random Forest classifier.
593
- - Fix to use frozen string literal.
594
- - Refactor marshal dump method on some classes.
595
- - Introduce Coveralls to confirm test coverage.
596
-
597
- # 0.2.5
598
- - Add classes for Naive Bayes classifier.
599
- - Fix decision function method on Logistic Regression class.
600
- - Fix method visibility on RBF kernel approximation class.
601
-
602
- # 0.2.4
603
- - Add class for Factorization Machine classifier.
604
- - Add classes for evaluation measures.
605
- - Fix the method for prediction of class probability in Logistic Regression.
606
-
607
- # 0.2.3
608
- - Add class for cross validation.
609
- - Add specs for base modules.
610
- - Fix validation of the number of splits when a negative label is given.
611
-
612
- # 0.2.2
613
- - Add data splitter classes for K-fold cross validation.
614
-
615
- # 0.2.1
616
- - Add class for K-nearest neighbors classifier.
617
-
618
- # 0.2.0
619
- - Migrated the linear algebra library to Numo::NArray.
620
- - Add module for loading and saving libsvm format file.
621
-
622
- # 0.1.3
623
- - Add class for Kernel Support Vector Machine with Pegasos algorithm.
624
- - Add module for calculating pairwise kernel fuctions and euclidean distances.
625
-
626
- # 0.1.2
627
- - Add the function learning a model with bias term to the PegasosSVC and LogisticRegression classes.
628
- - Rewrite the document with yard notation.
629
-
630
- # 0.1.1
631
- - Add class for Logistic Regression with SGD optimization.
632
- - Fix some mistakes on the document.
633
-
634
- # 0.1.0
635
- - Add basic classes.
636
- - Add an utility module.
637
- - Add class for RBF kernel approximation.
638
- - Add class for Support Vector Machine with Pegasos alogrithm.
639
- - Add class that performs mutlclass classification with one-vs.-rest strategy.
640
- - Add classes for preprocessing such as min-max scaling, standardization, and L2 normalization.