This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| mog.py | |
| Mixture of gaussians. For fitting data that looks like Gaussians. | |
| author: Colin Clement | |
| date: 2016-2-29 | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| leastsq.py | |
| author: Colin Clement | |
| date: 2019-03-26 | |
| This module defines a Levenberg Marquardt optimization routine, featuring | |
| geodesic acceleration from Mark Transtrum's PRE paper | |
| @article{transtrum2012geodesic, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from athenacommon.tree_sitter import get_language | |
| from tree_sitter import Parser | |
| parser = Parser() | |
| lang = get_language('python') # get lang whatever way if you lack athenacommon | |
| parser.set_language(lang) | |
| code = bytes("""def foo(qux): | |
| h = boo() | |
| for j in range(10): |