Changeset 449
- Timestamp:
- 07/21/07 23:26:04 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/learn/scikits/learn/machine/em/__init__.py
r447 r449 1 1 #! /usr/bin/env python 2 # Last Change: S at Jul 21 03:00 PM 2007 J2 # Last Change: Sun Jul 22 01:00 PM 2007 J 3 3 4 4 from info import __doc__ … … 6 6 from gauss_mix import GmParamError, GM 7 7 from gmm_em import GmmParamError, GMM, EM 8 #from online_em import OnGMM as _OnGMM8 from online_em import OnGMM as _OnGMM 9 9 10 10 __all__ = filter(lambda s:not s.startswith('_'), dir()) trunk/learn/scikits/learn/machine/em/tests/test_online_em.py
r313 r449 1 1 #! /usr/bin/env python 2 # Last Change: Mon May 2801:00 PM 2007 J2 # Last Change: Sun Jul 22 01:00 PM 2007 J 3 3 4 4 import copy … … 11 11 12 12 set_package_path() 13 from pyem import GM, GMM14 from pyem.online_em import OnGMM, OnGMM1d13 from em import GM, GMM 14 from em.online_em import OnGMM, OnGMM1d 15 15 restore_path() 16 16 … … 45 45 # The actual EM, with likelihood computation 46 46 for i in range(emiter): 47 g, tgd = gmm. sufficient_statistics(data)47 g, tgd = gmm.compute_responsabilities(data) 48 48 gmm.update_em(data, g) 49 49
