Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
99aa039
WIP: 2d covariance matrix plot (requires d3-contour, d3-geo)
st-- Apr 9, 2021
f1a2036
Merge branch 'main' into covmat2d
st-- Apr 15, 2021
7b07f4d
fix full-covariance plot
st-- Apr 15, 2021
08a8f1a
Merge branch 'main' into covmat2d
st-- Apr 16, 2021
f686152
reinstall
st-- Apr 16, 2021
d706bac
minor update
st-- Apr 19, 2021
cc110ec
Merge branch 'main' into covmat2d
st-- Jun 2, 2021
9b7f2e2
Merge branch 'main' into covmat2d
st-- Jun 2, 2021
64e37cc
Merge branch 'main' into covmat2d
st-- Jun 9, 2021
571174d
update dependencies
st-- Jun 9, 2021
ae66beb
finish rename
st-- Jun 9, 2021
86603cf
fix padding to match PlotMarginals
st-- Jun 9, 2021
b810b15
handle Shift modifier in mousemove
st-- Jun 9, 2021
a2b37dd
remove unused css
st-- Jun 9, 2021
bf89774
add ConfigPlot option to hide fullcov
st-- Jun 9, 2021
542cc0d
add XIndicatorCross for x1/x2
st-- Jun 9, 2021
c7a420c
make mytransform reactive to xScale/yScale
st-- Jun 9, 2021
57f676e
set width/height of fullcovchart to width of marginals plot
st-- Jun 9, 2021
0c2af1e
display quickfixes for configuration
st-- Jun 9, 2021
cd30b39
Merge branch 'quickfixes' into covmat2d
st-- Jun 9, 2021
38f8ede
Merge remote-tracking branch 'origin/main' into covmat2d
st-- Jun 9, 2021
768c71b
div container width/height fix
st-- Jun 9, 2021
23acfe1
remove logging
st-- Jun 9, 2021
894724d
Axes in front
st-- Jun 9, 2021
e1441de
Blues instead of (reversed) Spectral color scale
st-- Jun 9, 2021
8e54b3d
reduce number of contours
st-- Jun 9, 2021
24af43d
TODO comments
st-- Jun 9, 2021
2d4d8e2
move Full Covariance plotting checkbox into main area
st-- Jun 9, 2021
eb37951
0.4.0-dev version
st-- Jun 9, 2021
812d343
Merge branch 'main' into covmat2d
st-- Jun 11, 2021
9f4a482
typescript merge-fix
st-- Jun 11, 2021
ad9453b
Merge branch 'main' into covmat2d
st-- Apr 11, 2023
6fc399a
npm update
st-- Apr 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 79 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,32 @@
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-typescript": "^8.0.0",
"@tsconfig/svelte": "^1.0.13",
"@tsconfig/svelte": "^2.0.1",
"@types/d3-array": "^2.12.1",
"@types/d3-contour": "^2.0.0",
"@types/d3-geo": "^2.0.0",
"@types/d3-random": "^2.2.0",
"@types/d3-scale": "^3.3.0",
"@types/d3-scale-chromatic": "^2.0.0",
"@types/katex": "^0.11.0",
"d3-array": "latest",
"d3-random": "^2.2.2",
"d3-contour": "^3.0.1",
"d3-geo": "^3.0.1",
"d3-random": "^3.0.1",
"d3-scale": "latest",
"d3-scale-chromatic": "^3.0.0",
"katex": "^0.13.11",
"ml-matrix": "latest",
"prettier": "^2.3.0",
"prettier": "^2.3.1",
"prettier-plugin-svelte": "^2.3.0",
"rollup": "^2.50.4",
"rollup": "^2.51.1",
"rollup-plugin-css-only": "^3.1.0",
"rollup-plugin-livereload": "^2.0.0",
"rollup-plugin-svelte": "^7.0.0",
"rollup-plugin-terser": "^7.0.0",
"svelte": "^3.38.2",
"svelte-check": "^2.0.0",
"svelte-collapsible": "^0.0.9",
"svelte-check": "^2.1.0",
"svelte-collapsible": "^0.1.1",
"svelte-preprocess": "^4.7.3",
"tslib": "^2.0.0",
"typescript": "^4.3.2"
Expand Down
29 changes: 27 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Future thoughts:
import PlotMarginals from "./PlotMarginals.svelte";
import PlotKernelSlices from "./PlotKernelSlices.svelte";
import PlotBivariateCovariance from "./PlotBivariateCovariance.svelte";
import PlotCovarianceFunction from "./PlotCovarianceFunction.svelte";
import RandomSample from "./RandomSample.svelte";
import Animation from "./Animation.svelte";
import ConfigModel from "./ConfigModel.svelte";
Expand Down Expand Up @@ -63,6 +64,7 @@ Future thoughts:
confidence: true,
samples: true,
marginals: true,
fullcov: false,
withNoise: false,
};

Expand Down Expand Up @@ -121,6 +123,8 @@ Future thoughts:
$: covProps = covEllipse(covY1Y2);

let points = [];

let widthPlotMarginals: number;
</script>

<div>
Expand Down Expand Up @@ -170,7 +174,7 @@ Future thoughts:
observations on which to condition the Gaussian process by
<strong>clicking</strong>
anywhere in the plot; these observations are drawn as black circles &#9899;.
To remove an observation, click on it again.
To remove an observation again, click on it.
<small
><em>Note:</em> Two observations too close to each other can lead to numerical
issues and long compute times. If the app seems to hang, reload the page
Expand Down Expand Up @@ -228,7 +232,11 @@ Future thoughts:
<div class="chart" style="grid-area: bicovmatrix;">
<ShowBivariateCovarianceMatrix {atX1} {atX2} />
</div>
<div class="chart" style="grid-area: marginals;">
<div
class="chart"
style="grid-area: marginals;"
bind:clientWidth={widthPlotMarginals}
>
<PlotMarginals
{xs}
{means}
Expand All @@ -245,6 +253,20 @@ Future thoughts:
<PlotBivariateCovariance {atX1} {atX2} {covProps} {plotProps} />
</div>
</div>
<label
><input type="checkbox" bind:checked={plotProps.fullcov} />Visualize full
covariance function <Katex
math={"\\operatorname{cov}(f(x),f(x'))"}
/></label
>
{#if plotProps.fullcov}
<div
class="fullcovchart"
style="width: {widthPlotMarginals}px; height: {widthPlotMarginals}px;"
>
<PlotCovarianceFunction {covMat} />
</div>
{/if}
</div>

<CollapsibleCard open={true}>
Expand Down Expand Up @@ -333,6 +355,9 @@ Future thoughts:
min-width: 200px;
/* background-color: #fafafa; */
}
.fullcovchart {
background-color: #fafafa; /* TODO */
}
.squarechart {
width: 350px;
height: 350px;
Expand Down
Loading