Bristlecone Module
Main functionality of Bristlecone, including functions to scaffold `ModelSystem`s and for model-fitting (tests and real fits).
Nested modules
Modules | Description |
Functions and values
Function or value | Description |
Full Usage:
Bristlecone.bootstrap engine endCondition bootstrapCount model series
Parameters:
EstimationEngine<float, float>
-
The estimation engine / fitting method
endCondition : EndCondition<float>
-
The end condition for each model fit
bootstrapCount : int
-
Number of times to bootstrap data
model : ModelSystem
-
A model system / hypothesis to fit
series : CodedMap<TimeSeries<float<MeasureOne>>>
-
Time-series to fit with model
Returns: EstimationResult list
A list of estimation results (one for each bootstrap) for further analysis
|
|
Full Usage:
Bristlecone.fit engine endCondition timeSeriesData model
Parameters:
EstimationEngine<float, float>
-
An estimation engine configured and tested for the given model.
endCondition : EndCondition<float>
-
The condition at which optimisation should cease.
timeSeriesData : CodedMap<TimeSeries<float>>
-
Time-series dataset that contains a series for each equation in the model system.
model : ModelSystem
-
A model system of equations, likelihood function, estimatible parameters, and optional measures.
Returns: EstimationResult
The result of the model-fitting procedure. If an error occurs, throws an exception.
|
|
|
|
|
|
Full Usage:
Bristlecone.oneStepAhead engine hypothesis preTransform timeSeries estimatedTheta
Parameters:
EstimationEngine<float, float>
-
The exact estimation engine used for the existing model fit
hypothesis : ModelSystem
-
The exact model system / hypothesis from which parameters have been already estimated
preTransform : CodedMap<TimeSeries<'a>> -> CodedMap<TimeSeries<float>>
-
A function that may transform each shorter time-series before prediction. This may be needed,
for example, if there are custom start values that need to be configured in a complex way (e.g. for derived mesaurement
variables).
timeSeries : Map<ShortCode, TimeSeries<'a>>
-
The observed data to predict against.
estimatedTheta : Pool
-
A parameter pool containing already estimated parameters from model fitting step
Returns: CodedMap<FitSeries * NStepStatistics>
A time-series for each variable containing a step-ahead prediction
|
|
Full Usage:
Bristlecone.testModel engine settings model
Parameters:
EstimationEngine<float, float>
-
An estimation engine containing the method used for model-fitting.
settings : TestSettings<float>
-
Test settings that define how the test will be conducted.
model : ModelSystem
-
The model system to test against the estimation engine.
Returns: TestResult
A test result that indicates differences between the expected and actual fit.
|
|
Full Usage:
Bristlecone.tryFit engine endCondition timeSeriesData model
Parameters:
EstimationEngine<float, float>
-
The engine encapsulates all settings that form part of the estimation
method. Importantly, this includes the random number generator used for all stages
of the analysis; if this is set using a fixed seed, the result will be reproducable.
endCondition : EndCondition<float>
-
You must specify a stopping condition, after which
the optimisation process will cease. Bristlecone includes built-in end conditions
in the `Bristlecone.Optimisation.EndConditions` module.
timeSeriesData : CodedMap<TimeSeries<float>>
-
model : ModelSystem
-
Returns: Result<EstimationResult, string>
|
|
Full Usage:
Bristlecone.tryTestModel engine settings model
Parameters:
EstimationEngine<float, float>
-
settings : TestSettings<float>
-
model : ModelSystem
-
Returns: Result<TestResult, string>
A test result that indicates the error structure.
It is wrapped in an F# Result, indicating if the procedure
was successful or not.
|
|
Full Usage:
Bristlecone.withConditioning c engine
Parameters:
Conditioning<'a>
engine : EstimationEngine<'a, 'b>
Returns: EstimationEngine<'a, 'b>
|
|
Full Usage:
Bristlecone.withContinuousTime t engine
Parameters:
Integrate<'a, 'b>
engine : EstimationEngine<'a, 'b>
Returns: EstimationEngine<'a, 'b>
|
|
Full Usage:
Bristlecone.withCustomOptimisation optim engine
Parameters:
Optimiser<'a>
engine : EstimationEngine<'a, 'b>
Returns: EstimationEngine<'a, 'b>
|
|
Full Usage:
Bristlecone.withGradientDescent engine
Parameters:
EstimationEngine<float, 'a>
Returns: EstimationEngine<float, 'a>
|
|
Full Usage:
Bristlecone.withOutput out engine
Parameters:
WriteOut
-
engine : EstimationEngine<'a, 'b>
-
Returns: EstimationEngine<'a, 'b>
|
|
Full Usage:
Bristlecone.withSeed seed engine
Parameters:
int
engine : EstimationEngine<'a, 'b>
Returns: EstimationEngine<'a, 'b>
|
|
Full Usage:
Bristlecone.withTunedMCMC tuning engine
Parameters:
TuneStep<float> seq
engine : EstimationEngine<float, 'a>
Returns: EstimationEngine<float, 'a>
|
|