Skip to content

0.5 - #34

Draft
dm13450 wants to merge 1 commit into
masterfrom
0.5
Draft

0.5#34
dm13450 wants to merge 1 commit into
masterfrom
0.5

Conversation

@dm13450

@dm13450 dm13450 commented Aug 13, 2026

Copy link
Copy Markdown
Owner

No description provided.

@dm13450 dm13450 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes needed

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be deleted

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any testing needs to be moved to test directory

Comment thread R/fit.R
dpObj$clusterLabels <- rep(1L, nrow(dpObj$data))
}

if (inherits(dpObj$mixingDistribution, c("normal_inverse_gamma", "normal"))) {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dispatch on the mdObj type, not these if statements

Comment thread R/fit.R
storeSamples, thinning))
}

if (inherits(dpObj$mixingDistribution, "normalFixedVariance")) {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dispatch on the mdObj type, not these if statements

Comment thread R/fit.R
storeSamples, thinning))
}

if (inherits(dpObj$mixingDistribution, "exponential")) {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dispatch on the mdObj type, not these if statements

Comment thread R/update_states.R
likelihoodValue <- numeric(2)
for (k in 1:2) {
state_params <- params[[states[candiateStates[k]]]]
if (inherits(mdobj, "normal")) {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dispatch on class

Comment thread R/testHelpers.R

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testing files should be in the test directory

Comment thread tests/README.md

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests should be commented rather than this md file

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the standalone code to generate the plots now?

Comment thread README.md

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit README.Rmd not the .md

Comment thread R/exponential_gamma.R
alphaPost <- priorParameters[1] + length(x[i])
betaPost <- priorParameters[2] + sum(x[i])
pred[i] <- (gamma(alphaPost)/gamma(priorParameters[1])) * ((priorParameters[2] ^priorParameters[1])/(betaPost^alphaPost))
# Corrected line:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suprious comment

Comment thread NEWS.md

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow the file structure

Comment thread NEWS.md
@@ -1,10 +1,22 @@
# dirichletprocess 0.4.2.9000
# dirichletprocess 2.0.0

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to 0.5

Comment thread DESCRIPTION
Title: Build Dirichlet Process Objects for Bayesian Modelling
Version: 0.4.2.9000
Title: Fit and Extend Dirichlet Process Mixture Models
Version: 2.1.0

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to 0.5

Comment thread DESCRIPTION
Kees Mulder [ctb] (<https://orcid.org/0000-0002-5387-3812>),
Giovanni Sighinolfi [ctb],
Filippo Fiocchi [ctb]
Maintainer: Gordon J. Ross <gordon.ross@ed.ac.uk>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep me as maintainer

Comment thread DESCRIPTION
person(given = "Dean",
family = "Markwick",
email = "dean.markwick@talk21.com",
role = "aut"),

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep me as cre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant