Skip to content

Commit

Permalink
deploy: 861a4ec
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewIOM committed Apr 17, 2024
0 parents commit 58bd0e7
Show file tree
Hide file tree
Showing 290 changed files with 148,489 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0

RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install python3 python3-pip python3-dev ipython3

RUN python3 -m pip install --no-cache-dir notebook jupyterlab

ARG NB_USER=fsdocs-user
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}

RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}

COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}

ENV PATH="${PATH}:$HOME/.dotnet/tools/"

RUN dotnet tool install --global Microsoft.dotnet-interactive --version 1.0.410202

RUN dotnet-interactive jupyter install
14 changes: 14 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="dotnet3-dev" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1/nuget/v3/index.json" />
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="PSGallery" value="https://www.powershellgallery.com/api/v2/" />
</packageSources>
</configuration>
1 change: 1 addition & 0 deletions _head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script src="https://cdn.plot.ly/plotly-2.21.0.min.js"></script>
39 changes: 39 additions & 0 deletions confidence-intervals.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
(**
*)
#r "nuget: Bristlecone,2.0.0-alpha2"
(**
# Calculating Confidence Intervals
Bristlecone includes functions to calculate confidence intervals based
on a profile likelihood method. Given the minimum -log likelihood, the
profile likelihood method samples the parameter space around this point.
The range sampled for each parameter is discovered at 95% and 68%
confidence based on a chi squared distribution.
These functions are included in the `Bristlecone.Optimisation.ConfidenceInterval` module.
An example of their use is given below:
*)
open Bristlecone
open Bristlecone.Optimisation
open Bristlecone.Data

// // fitFn =
// fun engine dataset hypothesis result ->

// // The function used to fit the model, which unless an
// // advanced scenario is usually Bristlecone.fit
// let fitFn = Bristlecone.fit

// // The number of jumps to perform in parameter space
// let n = 10000

// let ci = ConfidenceInterval.ProfileLikelihood.profile fitFn engine dataset hypothesis n result

// // Optionally, save the result
// let saveDir = "/some/save/dir"
// let subjectName = "some subject"
// let modelId = "some model hypothesis"
// Confidence.save saveDir subjectName modelId result.ResultId ci

Loading

0 comments on commit 58bd0e7

Please sign in to comment.