forked from lorenasandoval88/statsjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimports.js
More file actions
30 lines (24 loc) · 1.27 KB
/
Copy pathimports.js
File metadata and controls
30 lines (24 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { PCA as npm_pca } from "https://esm.sh/ml-pca"
const ml_dataset_iris = (await import("https://esm.sh/ml-dataset-iris"))
import { default as npm_pcajs } from 'https://cdn.jsdelivr.net/npm/pca-js@1.0.1/+esm'
const Plotly = (await import('https://cdn.jsdelivr.net/npm/plotly.js-dist@3.0.1/+esm')).default
const localForage = (await import('https://cdn.jsdelivr.net/npm/localforage@1.10.0/dist/localforage.min.js'))
// import {PCA} from 'https://cdn.jsdelivr.net/npm/ml-pca@4.1.1/+esm'
import * as d3 from "https://cdn.skypack.dev/d3@7"
import { default as d3tip} from 'https://esm.sh/d3-tip';
const hclust = (await import("https://cdn.skypack.dev/ml-hclust@3.1.0?min"))
// const dist = (await import("https://bundle.run/ml-distance-matrix@2.0.1"))
import {default as dist} from "https://esm.sh/ml-distance-matrix"
const distance = (await import("https://cdn.skypack.dev/ml-distance@3.0.0?min")).distance
// console.log("Plotly", Plotly)
// console.log("PCA", PCA)
// const imports = {}
// imports.d3 = d3
// imports.d3tip = d3tip
// imports.Plotly = Plotly
// imports.PCA = PCA
// imports.PCAjs = PCAjs
// imports.iris = dataset
// imports.localForage = localForage
// export { imports };
export { npm_pca, npm_pcajs, Plotly, d3, d3tip, ml_dataset_iris, localForage,hclust, dist, distance };