Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scikit-learn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian Johnson
scikit-learn
Commits
aa15792f
Commit
aa15792f
authored
14 years ago
by
Alexandre Passos
Browse files
Options
Downloads
Patches
Plain Diff
Using a smaller example to speed things up
parent
2eff92e8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/mixture/plot_dpgmm.py
+2
-2
2 additions, 2 deletions
examples/mixture/plot_dpgmm.py
with
2 additions
and
2 deletions
examples/mixture/plot_dpgmm.py
+
2
−
2
View file @
aa15792f
...
@@ -13,7 +13,7 @@ import itertools
...
@@ -13,7 +13,7 @@ import itertools
import
pylab
as
pl
import
pylab
as
pl
import
matplotlib
as
mpl
import
matplotlib
as
mpl
n
,
m
=
3
00
,
2
n
,
m
=
2
00
,
2
# generate random sample, two components
# generate random sample, two components
np
.
random
.
seed
(
0
)
np
.
random
.
seed
(
0
)
...
@@ -22,7 +22,7 @@ X = np.r_[np.dot(np.random.randn(n, 2), C),
...
@@ -22,7 +22,7 @@ X = np.r_[np.dot(np.random.randn(n, 2), C),
np
.
random
.
randn
(
n
,
2
)
+
np
.
array
([
3
,
3
])]
np
.
random
.
randn
(
n
,
2
)
+
np
.
array
([
3
,
3
])]
for
p
,
alpha
in
enumerate
([
0.01
,
1.
,
100.
]):
for
p
,
alpha
in
enumerate
([
0.01
,
1.
,
100.
]):
clf
=
mixture
.
DPGMM
(
n_states
=
10
,
cvtype
=
'
full
'
,
alpha
=
alpha
)
clf
=
mixture
.
DPGMM
(
n_states
=
5
,
cvtype
=
'
full
'
,
alpha
=
alpha
)
clf
.
fit
(
X
)
clf
.
fit
(
X
)
splot
=
pl
.
subplot
(
310
+
p
+
1
,
aspect
=
'
equal
'
)
splot
=
pl
.
subplot
(
310
+
p
+
1
,
aspect
=
'
equal
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment