Skip to content

Commit

Permalink
feat: add nGMCA
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Oct 9, 2020
1 parent fce26ad commit bb78fdc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ It will be available as the global `ML` variable. The package is in UMD format.
- Similarity functions: [`ML.Similarity`](https://github.com/mljs/distance)
- Distance matrix: [`ML.distanceMatrix`](https://github.com/mljs/distance-matrix)
- XORShift-add RNG: [`ML.XSadd`](https://github.com/mljs/xsadd)
- non-negative Generalized Morphological Component Analysis [`ML.nGMCA`](https://github.com/mljs/nGMCA)

### [`ML.Array`](https://github.com/mljs/array)

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"ml-levenberg-marquardt": "^2.1.1",
"ml-matrix": "^6.5.1",
"ml-naivebayes": "^4.0.0",
"ml-ngmca": "^0.1.2",
"ml-pad-array": "^2.0.0",
"ml-pca": "^4.0.1",
"ml-performance": "^0.2.0",
Expand Down
13 changes: 7 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DecisionTreeClassifier, DecisionTreeRegression } from "ml-cart";
import {
RandomForestClassifier,
RandomForestRegression
RandomForestRegression,
} from "ml-random-forest";

// Try to keep this list in the same structure as the README.
Expand Down Expand Up @@ -35,7 +35,7 @@ export {
PowerRegression,
ExponentialRegression,
TheilSenRegression,
RobustPolynomialRegression
RobustPolynomialRegression,
} from "ml-regression";
export { DecisionTreeRegression };
export { RandomForestRegression };
Expand All @@ -53,7 +53,7 @@ const {
EVD,
CholeskyDecomposition,
LuDecomposition,
QrDecomposition
QrDecomposition,
} = MatrixLib;
export {
MatrixLib,
Expand All @@ -62,7 +62,7 @@ export {
EVD,
CholeskyDecomposition,
LuDecomposition,
QrDecomposition
QrDecomposition,
};

export { SparseMatrix } from "ml-sparse-matrix";
Expand All @@ -71,6 +71,7 @@ import { distance, similarity } from "ml-distance";
export { distance as Distance, similarity as Similarity };
export { default as distanceMatrix } from "ml-distance-matrix";
export { default as XSadd } from "ml-xsadd";
export { nGMCA } from "ml-ngmca";

// Statistics
export { default as Performance } from "ml-performance";
Expand Down Expand Up @@ -111,7 +112,7 @@ export const Array = {
sequentialFill,
standardDeviation,
sum,
variance
variance,
};

import centroidsMerge from "ml-array-xy-centroids-merge";
Expand All @@ -134,5 +135,5 @@ export const ArrayXY = {
uniqueX,
weightedMerge,
equallySpaced,
filterX
filterX,
};

0 comments on commit bb78fdc

Please sign in to comment.