Skip to content

Commit f7dd180

Browse files
authored
Update README.md
1 parent 365dd35 commit f7dd180

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ import numpy as np
5151
5252
data,gt = DPMMPython.generate_gaussian_data(10000, 2, 10, 100.0)
5353
prior = niw(1,np.zeros(2),4,np.eye(2))
54-
labels,_,sub_labels= DPMMPython.fit(data,100,prior = prior,verbose = True, gt = gt)
54+
labels,_,results= DPMMPython.fit(data,100,prior = prior,verbose = True, gt = gt)
55+
5556
```
5657
```
5758
Iteration: 1 || Clusters count: 1 || Log posterior: -71190.14226686998 || Vi score: 1.990707323192506 || NMI score: 6.69243345834295e-16 || Iter Time:0.004499912261962891 || Total time:0.004499912261962891
@@ -61,6 +62,9 @@ Iteration: 98 || Clusters count: 9 || Log posterior: -40607.39498126549 || Vi sc
6162
Iteration: 99 || Clusters count: 9 || Log posterior: -40607.39498126549 || Vi score: 0.11887067921133423 || NMI score: 0.9692247699387838 || Iter Time:0.01072382926940918 || Total time:0.5856342315673828
6263
Iteration: 100 || Clusters count: 9 || Log posterior: -40607.39498126549 || Vi score: 0.11887067921133423 || NMI score: 0.9692247699387838 || Iter Time:0.010260820388793945 || Total time:0.5958950519561768
6364
```
65+
```
66+
predictions = DPMMPython.predict(results[-1],data)
67+
```
6468

6569
You can modify the number of processes by using `DPMMPython.add_procs(procs_count)`, note that you can only scale it upwards.
6670

0 commit comments

Comments
 (0)