In[]:=
(*deployswithcanonicalname*)deploy:=Module[{notebookFn,parentDir,cloudFn,result},Print[DateString[]];notebookFn=FileNameSplit[NotebookFileName[]][[-1]];parentDir=FileNameSplit[NotebookFileName[]][[-2]];cloudFn=parentDir~StringJoin~"/"~StringJoin~notebookFn;result=CloudDeploy[SelectedNotebook[],CloudObject[cloudFn],Permissions"Public",SourceLinkNone];Print["Uploading to ",cloudFn];result];deploy
Thu 22 Sep 2022 12:26:22
How does this Gaussian random walk move away from origin?
How does this Gaussian random walk move away from origin?
Estimate critical batch size
Estimate critical batch size
Switching order of expectation and reciprocal
Switching order of expectation and reciprocal
In[]:=
SeedRandom[1];Clear[getPair];getPair[d_,m_]:=samples=1000;h=symmetry2spectrum[0.5,d];h=hTotal[h];sampler=gaussianSampler[h];A=IdentityMatrix[d];f[X_]:=Tr[X.X.A.X.X];fi[X_]:=;,expectation&,m,samples;m=1;dims=Range[10,100,10];vals=getPair[#,m]&/@dims;decorate[v_]:={dims,v};plot1=ListPlotdecorate/@(vals),PlotLegends->"","E",AxesLabel->{"d","value"},PlotLabel->StringForm["m=``",m]m=10;dims=Range[10,100,10];vals=getPair[#,m]&/@dims;decorate[v_]:={dims,v};plot2=ListPlotdecorate/@(vals),PlotLegends->"","E",AxesLabel->{"d","value"},PlotLabel->StringForm["m=``",m]GraphicsRow[{plot1,plot2}]
1
f[X]
1
expectation[f,m,samples]
1
f[#]
1
Ef
1
f
1
Ef
1
f
Out[]=
Out[]=
Out[]=