You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-18Lines changed: 17 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,26 @@
1
1
BayesianNonparametrics.jl
2
2
===========
3
-
BayesianNonparametrics.jl is a Julia package implementing state-of-the-art Bayesian nonparametric models for medium-sized unsupervised problems. The software package brings Bayesian nonparametrics to non-specialists allowing the widespread use of Bayesian nonparametric models. Emphasis is put on consistency, performance and ease of use allowing easy access to Bayesian nonparametric models inside Julia.
*BayesianNonparametrics* is a Julia package implementing state-of-the-art Bayesian nonparametric models for medium-sized unsupervised problems. The software package brings Bayesian nonparametrics to non-specialists allowing the widespread use of Bayesian nonparametric models. Emphasis is put on consistency, performance and ease of use allowing easy access to Bayesian nonparametric models inside Julia.
4
7
5
-
BayesianNonparametrics.jl allows you to
8
+
*BayesianNonparametrics* allows you to
6
9
7
10
- explain discrete or continous data using: Dirichlet Process Mixtures or Hierarchical Dirichlet Process Mixtures
8
11
- analyse variable dependencies using: Variable Clustering Model
9
12
- fit multivariate or univariate distributions for discrete or continous data with conjugate priors
10
13
- compute point estimtates of Dirichlet Process Mixtures posterior samples
11
14
12
-
Requirements
13
-
------------
14
-
* julia version 0.6
15
-
* packages listed in REQUIREMENTS file
15
+
#### News
16
+
*BayesianNonparametrics* is Julia 0.7 / 1.0 compatible
16
17
17
18
Installation
18
19
------------
19
-
You can clone the package into your running julia 0.5 installation using
20
+
You can install the package into your running Julia installation using Julia's package manager, i.e.
20
21
21
22
```julia
22
-
Pkg.add("BayesianNonparametrics")
23
+
pkg>addBayesianNonparametrics
23
24
```
24
25
25
26
Documentation
@@ -29,7 +30,7 @@ Documentation is available in Markdown:
29
30
30
31
Example
31
32
-------
32
-
The following example illustrates the use of BayesianNonparametrics.jl for clustering of continuous observations using a Dirichlet Process Mixture of Gaussians.
33
+
The following example illustrates the use of *BayesianNonparametrics* for clustering of continuous observations using a Dirichlet Process Mixture of Gaussians.
33
34
34
35
After loading the package:
35
36
@@ -46,7 +47,7 @@ we can generate a 2D synthetic dataset (or use a multivariate continuous dataset
46
47
and construct the parameters of our base distribution:
47
48
48
49
```julia
49
-
μ0 =vec(mean(X, 1))
50
+
μ0 =vec(mean(X, dims =1))
50
51
κ0 =5.0
51
52
ν0 =9.0
52
53
Σ0 =cov(X)
@@ -65,7 +66,7 @@ which is in this case a Dirichlet Process Mixture. Each model has to be initiali
The resulting buffer object can now be used to apply posterior inference on the model given $X$. In the following we apply Gibbs sampling for 500 iterations without burn in or thining:
69
+
The resulting buffer object can now be used to apply posterior inference on the model given `X`. In the following we apply Gibbs sampling for 500 iterations without burn in or thining:
You shoud see the progress of the sampling process in the command line. After applying Gibbs sampling, it is possible explore the posterior based on their posterior densities,
75
76
76
77
```julia
77
-
densities =Float64[m.energy for m inmodels]
78
+
densities =map(m -> m.energy, models)
78
79
```
79
80
80
81
number of active components
81
82
82
83
```julia
83
-
activeComponents =Int[sum(m.weights .>0)for m inmodels]
0 commit comments