Skip to content

Commit

Permalink
Rename to MCMCDiagnosticTools (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Jul 9, 2021
1 parent f9a3eb5 commit 13ae88c
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "InferenceDiagnostics"
name = "MCMCDiagnosticTools"
uuid = "be115224-59cd-429b-ad48-344e309966f0"
authors = ["David Widmann"]
version = "0.1.0"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# InferenceDiagnostics.jl
# MCMCDiagnosticTools.jl

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://devmotion.github.io/InferenceDiagnostics.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://devmotion.github.io/InferenceDiagnostics.jl/dev)
[![Build Status](https://github.com/devmotion/InferenceDiagnostics.jl/workflows/CI/badge.svg?branch=main)](https://github.com/devmotion/InferenceDiagnostics.jl/actions?query=workflow%3ACI+branch%3Amain)
[![Coverage](https://codecov.io/gh/devmotion/InferenceDiagnostics.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/devmotion/InferenceDiagnostics.jl)
[![Coverage](https://coveralls.io/repos/github/devmotion/InferenceDiagnostics.jl/badge.svg?branch=main)](https://coveralls.io/github/devmotion/InferenceDiagnostics.jl?branch=main)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://devmotion.github.io/MCMCDiagnosticTools.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://devmotion.github.io/MCMCDiagnosticTools.jl/dev)
[![Build Status](https://github.com/devmotion/MCMCDiagnosticTools.jl/workflows/CI/badge.svg?branch=main)](https://github.com/devmotion/MCMCDiagnosticTools.jl/actions?query=workflow%3ACI+branch%3Amain)
[![Coverage](https://codecov.io/gh/devmotion/MCMCDiagnosticTools.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/devmotion/MCMCDiagnosticTools.jl)
[![Coverage](https://coveralls.io/repos/github/devmotion/MCMCDiagnosticTools.jl/badge.svg?branch=main)](https://coveralls.io/github/devmotion/MCMCDiagnosticTools.jl?branch=main)
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)

Expand Down
2 changes: 1 addition & 1 deletion docs/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ git-tree-sha1 = "f7be53659ab06ddc986428d3a9dcc95f6fa6705a"
uuid = "b5f81e59-6552-4d32-b1f0-c071b021bf89"
version = "0.2.2"

[[InferenceDiagnostics]]
[[MCMCDiagnosticTools]]
deps = ["AbstractFFTs", "DataAPI", "Distributions", "LinearAlgebra", "MLJModelInterface", "Random", "SpecialFunctions", "Statistics", "StatsBase", "Tables"]
path = ".."
uuid = "be115224-59cd-429b-ad48-344e309966f0"
Expand Down
4 changes: 2 additions & 2 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
InferenceDiagnostics = "be115224-59cd-429b-ad48-344e309966f0"
MCMCDiagnosticTools = "be115224-59cd-429b-ad48-344e309966f0"
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
MLJXGBoostInterface = "54119dfa-1dab-4055-a167-80440f4f7a91"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
Documenter = "0.27"
InferenceDiagnostics = "0.1"
MCMCDiagnosticTools = "0.1"
MLJBase = "0.18"
MLJXGBoostInterface = "0.1"
julia = "1.3"
14 changes: 7 additions & 7 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ if haskey(ENV, "GITHUB_ACTIONS")
ENV["JULIA_DEBUG"] = "Documenter"
end

using InferenceDiagnostics
using MCMCDiagnosticTools

DocMeta.setdocmeta!(
InferenceDiagnostics, :DocTestSetup, :(using InferenceDiagnostics); recursive=true
MCMCDiagnosticTools, :DocTestSetup, :(using MCMCDiagnosticTools); recursive=true
)

makedocs(;
modules=[InferenceDiagnostics],
modules=[MCMCDiagnosticTools],
authors="David Widmann",
repo="https://github.com/devmotion/InferenceDiagnostics.jl/blob/{commit}{path}#{line}",
sitename="InferenceDiagnostics.jl",
repo="https://github.com/devmotion/MCMCDiagnosticTools.jl/blob/{commit}{path}#{line}",
sitename="MCMCDiagnosticTools.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://devmotion.github.io/InferenceDiagnostics.jl",
canonical="https://devmotion.github.io/MCMCDiagnosticTools.jl",
assets=String[],
),
pages=["Home" => "index.md"],
Expand All @@ -27,5 +27,5 @@ makedocs(;
)

deploydocs(;
repo="github.com/devmotion/InferenceDiagnostics.jl", push_preview=true, devbranch="main"
repo="github.com/devmotion/MCMCDiagnosticTools.jl", push_preview=true, devbranch="main"
)
4 changes: 2 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
```@meta
CurrentModule = InferenceDiagnostics
CurrentModule = MCMCDiagnosticTools
```

# InferenceDiagnostics
# MCMCDiagnosticTools

## Effective sample size and potential scale reduction

Expand Down
2 changes: 1 addition & 1 deletion src/InferenceDiagnostics.jl → src/MCMCDiagnosticTools.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module InferenceDiagnostics
module MCMCDiagnosticTools

using AbstractFFTs: AbstractFFTs
using DataAPI: DataAPI
Expand Down
12 changes: 6 additions & 6 deletions test/ess.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@
x = rand(50, 20)

# check incompatible sizes
@test_throws DimensionMismatch InferenceDiagnostics.copyto_split!(
@test_throws DimensionMismatch MCMCDiagnosticTools.copyto_split!(
similar(x, 25, 20), x
)
@test_throws DimensionMismatch InferenceDiagnostics.copyto_split!(
@test_throws DimensionMismatch MCMCDiagnosticTools.copyto_split!(
similar(x, 50, 40), x
)

y = similar(x, 25, 40)
InferenceDiagnostics.copyto_split!(y, x)
MCMCDiagnosticTools.copyto_split!(y, x)
@test reshape(y, size(x)) == x

# check a matrix with odd number of rows
x = rand(51, 20)

# check incompatible sizes
@test_throws DimensionMismatch InferenceDiagnostics.copyto_split!(
@test_throws DimensionMismatch MCMCDiagnosticTools.copyto_split!(
similar(x, 25, 20), x
)
@test_throws DimensionMismatch InferenceDiagnostics.copyto_split!(
@test_throws DimensionMismatch MCMCDiagnosticTools.copyto_split!(
similar(x, 51, 40), x
)

InferenceDiagnostics.copyto_split!(y, x)
MCMCDiagnosticTools.copyto_split!(y, x)
@test reshape(y, 50, 20) == x[vcat(1:25, 27:51), :]
end

Expand Down
4 changes: 2 additions & 2 deletions test/rstar/Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[deps]
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
InferenceDiagnostics = "be115224-59cd-429b-ad48-344e309966f0"
MCMCDiagnosticTools = "be115224-59cd-429b-ad48-344e309966f0"
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
MLJLIBSVMInterface = "61c7150f-6c77-4bb1-949c-13197eac2a52"
MLJXGBoostInterface = "54119dfa-1dab-4055-a167-80440f4f7a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Distributions = "0.25"
InferenceDiagnostics = "0.1"
MCMCDiagnosticTools = "0.1"
MLJBase = "0.18"
MLJLIBSVMInterface = "0.1"
MLJXGBoostInterface = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion test/rstar/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using InferenceDiagnostics
using MCMCDiagnosticTools

using Distributions
using MLJBase
Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using Pkg
Pkg.instantiate()
end

using InferenceDiagnostics
using MCMCDiagnosticTools
using FFTW

using Random
Expand All @@ -16,7 +16,7 @@ using Test

Random.seed!(1)

@testset "InferenceDiagnostics.jl" begin
@testset "MCMCDiagnosticTools.jl" begin
@testset "discrete diagnostic" begin
include("discretediag.jl")
end
Expand Down Expand Up @@ -44,7 +44,7 @@ Random.seed!(1)
if VERSION >= v"1.3" && Sys.WORD_SIZE == 64
# run tests related to rstar statistic
Pkg.activate("rstar")
Pkg.develop(; path=dirname(dirname(pathof(InferenceDiagnostics))))
Pkg.develop(; path=dirname(dirname(pathof(MCMCDiagnosticTools))))
Pkg.instantiate()
include(joinpath("rstar", "runtests.jl"))
else
Expand Down

2 comments on commit 13ae88c

@devmotion
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/40583

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 13ae88c7ff481d9831b3b09cbe0052658caf4a60
git push origin v0.1.0

Please sign in to comment.